LBank Orders API

Order placement, cancellation, and query

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).
Business capability
Trading Order Management BC-1370.30

Operations 6

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /v1/create_order.do Place a spot buy or sell order · Place a spot order #
Ask an LLM
“How do I buy or sell a cryptocurrency with a limit or market order?”
“Can I place a buy order at a specific price and quantity?”
Tell an agent
Place a {type} order for {amount} {symbol} at {price}.
Buy {amount} {symbol} at {price} with a {type} order.
POST /v1/cancel_order.do Cancel an open order · Cancel an order #
Ask an LLM
“Can I cancel an order that hasn't filled yet?”
“How many orders can I cancel in one request?”
Tell an agent destructive · confirm first
Cancel order {order_id} on {symbol}.
Cancel {order_id} on {symbol} and return the order ID.
POST /v1/orders_info.do Check the status of an order · Query order status #
Ask an LLM
“Has my order been filled yet?”
“What is the status of a specific order?”
Tell an agent
Get the status of order {order_id} on {symbol}.
Check whether order {order_id} on {symbol} has filled.
POST /v1/orders_info_history.do List my order history · Get order history #
Ask an LLM
“What trades have I made on a pair over the last week?”
“Can I filter my order history by status?”
Tell an agent
Show my order history for {symbol}.
List {symbol} trades with status {status}, page {current_page} with {page_length} per page.
POST /v1/orders_info_no_deal.do List my unfilled orders · Get open orders #
Ask an LLM
“Which of my orders are still open and waiting to fill?”
“Can I page through my open orders?”
Tell an agent
Show my open orders on {symbol}.
List {symbol} orders, page {current_page} with {page_length} per page.
POST /v1/order_transaction_detail.do Get fill details for an order · Get order transaction details #
Ask an LLM
“How many trades filled my order and at what prices?”
“Where can I see the fill history of one order?”
Tell an agent
Show the fill details for order {order_id} on {symbol}.
Break down how {symbol} order {order_id} was filled.

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/lbank:lbank-orders-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

lbank-orders-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: LBank Spot Trading REST Orders API
  description: Authenticated REST endpoints for spot order management and account operations on LBank. Supports RSA and HmacSHA256 signed requests.
  version: 1.0.0
  contact:
    url: https://www.lbank.com/en-US/docs/
  termsOfService: https://www.lbank.com/en-US/agreement/
servers:
- url: https://api.lbkex.com
  description: LBank REST API (primary)
- url: https://api.lbkex.net
  description: LBank REST API (secondary)
tags:
- name: Orders
  description: Order placement, cancellation, and query
paths:
  /v1/create_order.do:
    post:
      operationId: createOrder
      summary: Place a spot order
      description: Places a new buy or sell limit/market order on the spot market. Returns the order ID on success.
      tags:
      - Orders
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              allOf:
              - $ref: '#/components/schemas/AuthRequest'
              - type: object
                required:
                - symbol
                - type
                - price
                - amount
                properties:
                  symbol:
                    type: string
                    description: Trading pair (e.g. eth_btc)
                    example: eth_btc
                  type:
                    type: string
                    enum:
                    - buy
                    - sell
                    - buy_market
                    - sell_market
                    - buy_maker
                    - sell_maker
                    - buy_ioc
                    - sell_ioc
                    - buy_fok
                    - sell_fok
                    description: Order type
                  price:
                    type: string
                    description: Order price (must be greater than 0)
                    example: '5323.42'
                  amount:
                    type: string
                    description: Order quantity
                    example: '3'
      responses:
        '200':
          description: Order placement result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateOrderResponse'
      security:
      - ApiKeyAuth: []
  /v1/cancel_order.do:
    post:
      operationId: cancelOrder
      summary: Cancel an order
      description: Cancels one or more open orders. For multiple orders, separate order IDs with commas (max 3 per request).
      tags:
      - Orders
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              allOf:
              - $ref: '#/components/schemas/AuthRequest'
              - type: object
                required:
                - symbol
                - order_id
                properties:
                  symbol:
                    type: string
                    description: Trading pair (e.g. eth_btc)
                  order_id:
                    type: string
                    description: Order ID(s). Use comma to join multiple orders (max 3)
      responses:
        '200':
          description: Cancellation result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CancelOrderResponse'
      security:
      - ApiKeyAuth: []
  /v1/orders_info.do:
    post:
      operationId: getOrderInfo
      summary: Query order status
      description: Returns status and details for one or more orders by order ID. Comma-separate multiple order IDs (max 3).
      tags:
      - Orders
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              allOf:
              - $ref: '#/components/schemas/AuthRequest'
              - type: object
                required:
                - symbol
                - order_id
                properties:
                  symbol:
                    type: string
                    description: Trading pair
                  order_id:
                    type: string
                    description: Order ID(s). Comma-separated for multiple (max 3)
      responses:
        '200':
          description: Order information
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrdersInfoResponse'
      security:
      - ApiKeyAuth: []
  /v1/orders_info_history.do:
    post:
      operationId: getOrderHistory
      summary: Get order history
      description: Returns historical order records for a trading pair. Only records from the last 7 days are available.
      tags:
      - Orders
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              allOf:
              - $ref: '#/components/schemas/AuthRequest'
              - type: object
                required:
                - symbol
                - current_page
                - page_length
                properties:
                  symbol:
                    type: string
                    description: Trading pair
                  current_page:
                    type: string
                    description: Current page number
                  page_length:
                    type: string
                    description: Records per page (max 200)
                  status:
                    type: string
                    description: Filter by order status
      responses:
        '200':
          description: Paginated order history
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrdersHistoryResponse'
      security:
      - ApiKeyAuth: []
  /v1/orders_info_no_deal.do:
    post:
      operationId: getOpenOrders
      summary: Get open orders
      description: Returns all currently open (unfilled) orders for a trading pair.
      tags:
      - Orders
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              allOf:
              - $ref: '#/components/schemas/AuthRequest'
              - type: object
                required:
                - symbol
                - current_page
                - page_length
                properties:
                  symbol:
                    type: string
                    description: Trading pair
                  current_page:
                    type: string
                    description: Current page number
                  page_length:
                    type: string
                    description: Records per page (max 200)
      responses:
        '200':
          description: Open orders list
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OrdersHistoryResponse'
      security:
      - ApiKeyAuth: []
  /v1/order_transaction_detail.do:
    post:
      operationId: getOrderTransactionDetail
      summary: Get order transaction details
      description: Returns detailed trade fill records for a specific order.
      tags:
      - Orders
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              allOf:
              - $ref: '#/components/schemas/AuthRequest'
              - type: object
                required:
                - symbol
                - order_id
                properties:
                  symbol:
                    type: string
                    description: Trading pair
                  order_id:
                    type: string
                    description: Order ID
      responses:
        '200':
          description: Order transaction details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TransactionDetailResponse'
      security:
      - ApiKeyAuth: []
components:
  schemas:
    CreateOrderResponse:
      type: object
      properties:
        result:
          type: string
          enum:
          - 'true'
          - 'false'
        order_id:
          type: string
          description: Order ID
    CancelOrderResponse:
      type: object
      properties:
        result:
          type: string
          enum:
          - 'true'
          - 'false'
          description: Success/failure for single order
        order_id:
          type: string
          description: Order ID (single order)
        success:
          type: string
          description: Comma-separated list of successfully cancelled order IDs (multiple orders)
        error:
          type: string
          description: Comma-separated list of failed order IDs (multiple orders)
    OrdersHistoryResponse:
      type: object
      properties:
        result:
          type: string
          enum:
          - 'true'
          - 'false'
        orders:
          type: array
          items:
            $ref: '#/components/schemas/Order'
        current_page:
          type: string
        page_length:
          type: string
        total:
          type: string
          description: Total number of records
    TransactionRecord:
      type: object
      properties:
        txUuid:
          type: string
          description: Trade ID
        orderUuid:
          type: string
          description: Order ID
        tradeType:
          type: string
          enum:
          - buy
          - sell
        dealTime:
          type: integer
          description: Trade timestamp (milliseconds)
        dealPrice:
          type: number
          description: Fill price
        dealQuantity:
          type: number
          description: Fill quantity
        dealVolumePrice:
          type: number
          description: Aggregated fill value (price * quantity)
        tradeFee:
          type: number
          description: Transaction fee amount
        tradeFeeRate:
          type: number
          description: Transaction fee rate
    Order:
      type: object
      properties:
        symbol:
          type: string
          description: Trading pair
        order_id:
          type: string
          description: Order ID
        amount:
          type: number
          description: Order quantity
        price:
          type: number
          description: Order price
        avg_price:
          type: number
          description: Average fill price
        type:
          type: string
          enum:
          - buy
          - sell
          description: Order direction
        deal_amount:
          type: number
          description: Filled quantity
        create_time:
          type: integer
          description: Order creation timestamp (milliseconds)
        status:
          type: integer
          description: 'Order status: -1=Cancelled, 0=Open, 1=Partially filled, 2=Fully filled, 3=Partially filled and cancelled, 4=Cancelling'
    AuthRequest:
      type: object
      required:
      - api_key
      - sign
      properties:
        api_key:
          type: string
          description: User's API key
        sign:
          type: string
          description: Request signature (RSA or HmacSHA256)
    OrdersInfoResponse:
      type: object
      properties:
        result:
          type: string
          enum:
          - 'true'
          - 'false'
        orders:
          type: array
          items:
            $ref: '#/components/schemas/Order'
    TransactionDetailResponse:
      type: object
      properties:
        result:
          type: string
          enum:
          - 'true'
          - 'false'
        transaction:
          type: array
          items:
            $ref: '#/components/schemas/TransactionRecord'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: query
      name: api_key
      description: LBank API key with HMAC or RSA request signing