Skip to content

03111stop_limit_order

张帅磊 edited this page Jun 29, 2021 · 3 revisions

Place Stop Limit Order

  • Request description: place stop limit order.

  • Request type: POST

  • Signature required: Yes

  • Rate limit: 100/10s

  • Request Header:

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

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

  • Request parameter:

    name type required description
    access_id String Yes access_id
    market String Yes See <API invocation description·market>
    type String Yes sell: sell order;
    buy: buy order;
    amount String Yes order amount, min. 0.001, accurate by market coin precision
    price String Yes order price, accurate by market coin precision
    stop_price String Yes order stop price, accurate by market coin precision
    source_id String no user defines number and return
    option String no order option, NORMAL: normal order, IOC: an Immediate or Cancel Order, FOK: Fill or kill Order, MAKER_ONLY: only maker order, default value is NORMAL
    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 >
    tonce Integer Yes Tonce is a timestamp with a positive Interger that represents the number of milliseconds from Unix epoch to the current time. Error between tonce and server time can not exceed plus or minus 60s
    client_id String No client_id is the custom id of order. Currently, it only supports uppercase and lowercase letters, numbers, hyphens and underlines, and it should be less than 32 bytes.
  • Return value description:

    name type description
    status String success
  • Example:

# Request
POST https://api.coinex.com/v1/order/stop/limit
# Request.Body
{
  "access_id":" BFFA64957AA240F6BBEA26F4E07EC0D9",
  "amount": "56.5",  # order count
  "price": "10",   # order price
  "stop_price": "9",   # order stop price
  "type": "sell",    # order type
  "market":"BTCBCH",  # market type
  "tonce": 1513746038205,
  "source_id": "123" # user defines number and return
}
# Response
{
  "code": 0,
  "data": {
     "status": "success"  
  },
  "message": "Ok"
}

HTTP API Introduction

Common API

Market API

Account API

Trading API

Margin API

Contract API

WebSocket API Introduction

Clone this wiki locally