Skip to content

041stop_pending

luowen edited this page Sep 10, 2021 · 2 revisions

Acquire Unexecuted Stop Order List

  • Request description: Acquire Unexecuted Stop Order List.

  • Request type: GET

  • Signature required: Yes

  • Rate limit: 100/10s

  • Request Header:
    authorization:"xxxx" (32-digit capital letters, see generating methods in <API invocation instruction>)

  • Request Url:https://api.coinex.com/v1/order/stop/pending

  • Request parameter:

    name type required description
    access_id String Yes access_id
    market String Yes See <API invocation description·market>
    type Interger No 1 for sell, 2 for buy, 0 for both
    page Interger Yes Page, start from 1
    limit Interger Yes Amount per page(1-100)
    account_id Integer no main account ID: 0, margin account ID: See < Inquire Margin Account Market Info >, future account ID: See < Inquire Future Account Market Info >
  • Return value description:

    name type description
    amount String order count
    order_id Interger order no
    create_time Interger time when placing order
    price String order price
    stop_price String stop price
    taker_fee_rate String taker fee
    maker_fee_rate String maker fee
    fee_asset String fee asset
    fee_discount String fee discount
    market String See <API invocation description·market>
    order_type String limit:limit order;
    market:market order;
    type String sell: sell order;
    buy: buy order;
    state Interger
    client_id String
  • Example:

# Request
GET https://api.coinex.com/v1/order/stop/finished?page=1&limit=1&market=BTCBCH&access_id=BFFA64957AA240F6BBEA26F4E07EC0D9
# Response
{
  "code": 0,
  "data": {
    "data": [
      {
        "account_id": 0,
        "order_id": 35317189,
        "create_time": 1631153397,
        "amount": "100.00000000",
        "price": "0",
        "stop_price": "0.52",
        "taker_fee": "0.0030",
        "maker_fee": "0.0030",
        "state": 2,
        "fee_asset": null,
        "fee_discount": "1",
        "market": "CETUSDT",
        "order_type": "market",
        "type": "buy",
        "client_id": ""
      }
    ],
    "curr_page": 1,          # current page rows
    "has_next": false,       # current page
    "count": 1  },           # return in reverse of order time with latest order on top
  "message": "Succeeded"
}

HTTP API Introduction

Common API

Market API

Account API

Trading API

Margin API

Contract API

WebSocket API Introduction

Clone this wiki locally