Rho Protocol Trading API

The Trading API from Rho Protocol — 3 operation(s) for trading.

Operations 3

POST /orders Create an order #
POST /orders/cancel Cancel an order #
POST /orders/cancel-all Cancel all user orders #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/rho-protocol-trading-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

rho-protocol-trading-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: ''
  title: Rho Exchange Trading API
  contact: {}
  version: development
servers:
- url: /api/v1
tags:
- name: Trading
paths:
  /orders:
    post:
      security:
      - Bearer: []
      - ApiKey: []
      description: 'Submits a new order for the user, returning the processed result. Rate limit weight: 1'
      tags:
      - Trading
      summary: Create an order
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dto.OrdersProcessingResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dto.ExternalError'
        '500':
          description: Internal Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dto.ExternalError'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/dto.RestCreateOrderRequest'
        description: RestCreateOrderRequest payload
        required: true
      operationId: postOrders
      x-operation-id-source: derived
  /orders/cancel:
    post:
      security:
      - Bearer: []
      - ApiKey: []
      description: 'Cancels an existing order by orderId or clientOrderId. Rate limit weight: 1'
      tags:
      - Trading
      summary: Cancel an order
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dto.OrdersProcessingResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dto.ExternalError'
        '500':
          description: Internal Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dto.ExternalError'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/dto.RestCancelOrderRequest'
        description: RestCancelOrderRequest payload
        required: true
      operationId: postOrdersCancel
      x-operation-id-source: derived
  /orders/cancel-all:
    post:
      security:
      - Bearer: []
      - ApiKey: []
      description: 'Cancels all open orders for the current user. Optional filters by symbol, margin account, or side. Rate limit weight: 5'
      tags:
      - Trading
      summary: Cancel all user orders
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dto.OrdersProcessingResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dto.ExternalError'
        '500':
          description: Internal Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/dto.ExternalError'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/dto.RestCancelAllOrdersRequest'
        description: RestCancelAllOrdersRequest payload
        required: true
      operationId: postOrdersCancelAll
      x-operation-id-source: derived
components:
  schemas:
    dto.RestCancelAllOrdersRequest:
      type: object
      properties:
        marginAccount:
          type: string
        side:
          type: string
          enum:
          - buy
          - sell
        symbol:
          type: string
    dto.Order:
      type: object
      properties:
        avgExecutedPrice:
          type: string
        cancellationReason:
          type: string
          enum:
          - user-request
          - auto-risk-reducing
        clientOrderId:
          type: string
        createdAt:
          type: string
        executedQuantity:
          type: string
        initialQuantity:
          type: string
        lastExecutedPrice:
          type: string
        lastExecutedQuantity:
          type: string
        leavesQuantity:
          type: string
        marginAccount:
          type: string
        orderId:
          type: string
          example: '0'
        price:
          type: string
        seqId:
          type: string
          example: '0'
        side:
          type: string
          enum:
          - sell
          - buy
        status:
          type: string
          enum:
          - new
          - partially-filled
          - filled
          - rejected
          - cancelled
        symbol:
          type: string
        userId:
          type: string
    dto.RestCreateOrderRequest:
      type: object
      required:
      - orderType
      - symbol
      properties:
        clientOrderId:
          type: string
          maxLength: 36
        flags:
          type: array
          items:
            type: string
            enum:
            - close-position
        orderType:
          type: string
          enum:
          - limit
          - market
        price:
          type: string
        quantity:
          type: string
        side:
          type: string
          enum:
          - buy
          - sell
        symbol:
          type: string
        timeInForce:
          type: string
          enum:
          - GTC
          - IOC
    dto.OrdersProcessingResponse:
      type: object
      properties:
        orders:
          type: array
          items:
            $ref: '#/components/schemas/dto.Order'
        seqId:
          type: string
          example: '0'
        trades:
          type: array
          items:
            $ref: '#/components/schemas/dto.UserTrade'
    dto.UserTrade:
      type: object
      properties:
        cmdSeqId:
          type: string
          example: '0'
        floatIndex:
          type: string
        liquidationFees:
          type: string
        liquidityRole:
          type: string
          enum:
          - maker
          - taker
        marginAccount:
          type: string
        orderId:
          type: string
          example: '0'
        price:
          type: string
        side:
          type: string
          enum:
          - sell
          - buy
        symbol:
          type: string
        time:
          type: string
        tradeType:
          type: string
          enum:
          - regular
          - liquidation
          - self-trade
        tradingFees:
          type: string
        userId:
          type: string
        userTradeSeqId:
          type: string
          example: '0'
        volume:
          type: string
    dto.RestCancelOrderRequest:
      type: object
      required:
      - symbol
      properties:
        clientOrderId:
          type: string
          maxLength: 36
        orderId:
          type: string
          minimum: 1
          example: '0'
        symbol:
          type: string
    dto.ExternalError:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
        params:
          description: Params carries stable flat string metadata for selected V2 AppErrors only.
          type: object
          additionalProperties:
            type: string
        requestId:
          type: string
        seqId:
          type: string
          example: '0'
  securitySchemes:
    Bearer:
      type: apiKey
      name: Authorization
      in: header