Skip to content

038finished_detail

buyongji edited this page Jun 28, 2018 · 5 revisions

Acquire Executed Order Detail

  • Request description: Acquire executed order details.

  • Request type: GET

  • Signature required: Yes

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

  • Request Url:https://api.coinex.com/v1/order/finished/{{id}}

  • Request parameter:

    name type required description
    id String Yes order no.
    access_id String Yes access_id
    market String Yes See <API invocation description·market>
    page Integer Yes page, start from 1
    limit Integer Yes amount per page(1-100)
    tonce Interger 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
  • Return value description:

    name type description
    amount String executed amount
    create_time Interger executed time
    deal_money String executed value
    fee String transaction fee
    id Interger order no.
    price String order price
    role String order role
  • Example:

# Request
GET https://api.coinex.com/v1/order/deals?id=300034&access_id=F0160AD40BAE4519A3836BFB057BD682&page=1&limit=1&tonce=1513746038205

# Response
{
  "code": 0,
  "data": {
    "count": 1,
    "curr_page": 1,
    "data": [
      {
        "amount": "0.622",           # executed amount
        "create_time": 1496799439,   # executed time
        "deal_money": "7240.6398",   # executed value
        "fee": "14.4812796",         # transaction fee
        "id": 1012977,               # order no.
        "price": "11640.9",          # order price
        "role": "taker"              # order role
      }
    ],
    "has_next": true
  },
  "message": "Ok"
}

HTTP API Introduction

Common API

Market API

Account API

Trading API

Margin API

Contract API

WebSocket API Introduction

Clone this wiki locally