Orders

NOTE: This endpoint requires API key and request signing, for more information please refer to Authentication section.

The Orders API has V1 and V3, If use V3 the URL will be https://satangcorp.com/api/v3

Create

POST https://satangcorp.com/api/orders/

**Please check that the price and amount field must be string.

Headers

NameTypeDescription

Signature

string

This field require encrypt of API key and API Secret

Authorization

string

This field require API key

Request Body

NameTypeDescription

type

string

A string representing order type, can be 'limit' or 'merket'

pair

string

A string representing paring, can be 'btc_thb' 'eth_thb' ...

side

string

A string representing order side, can be 'sell' or 'buy'

price

string

A string representing price you want to buy or sell, in smallest unit

amount

string

A string representing quantity you want to buy or sell

nonce

integer

An unique integer for each request, normally this will unix time stamp

{
  "id": 1293
}

List user orders

GET https://satangcorp.com/api/orders/user

https://satangcorp.com/api/v3/orders/user

Query Parameters

NameTypeDescription

pair

string

A string representing pairing

limit

string

A string representing limit to return

offset

string

A string representing offset

status

string

A string representing order status ("open" or "close")

side

string

A string representing side

Headers

NameTypeDescription

Signature

string

This field require encrypt of API key and API secret

Authorization

string

This field require API key

[
  {
    "id": 7033371,
    "price": "32.897531",
    "amount": "532.870154",
    "remaining_amount": "532.870154",
    "side": "sell",
    "cost": "0",
    "created_at": "2018-12-04T13:17:18.419747+01:00",
    "status": "created"
  },
  {
    "id": 7033346,
    "price": "32.882336",
    "amount": "222.017572",
    "remaining_amount": "222.017572",
    "side": "sell",
    "cost": "0",
    "created_at": "2018-12-04T13:17:11.33432+01:00",
    "status": "created"
  },
  {
    "id": 7033329,
    "price": "32.562438",
    "amount": "484.427136",
    "remaining_amount": "484.427136",
    "side": "sell",
    "cost": "0",
    "created_at": "2018-12-04T13:17:06.304916+01:00",
    "status": "created"
  },
  {
    "id": 7033314,
    "price": "32.570467",
    "amount": "915.08836",
    "remaining_amount": "915.08836",
    "side": "sell",
    "cost": "0",
    "created_at": "2018-12-04T13:17:01.087918+01:00",
    "status": "created"
  },
  {
    "id": 7033311,
    "price": "32.551656",
    "amount": "1128.126593",
    "remaining_amount": "1128.126593",
    "side": "sell",
    "cost": "0",
    "created_at": "2018-12-04T13:17:00.184203+01:00",
    "status": "created"
  },
  {
    "id": 7033307,
    "price": "32.764417",
    "amount": "235.979696",
    "remaining_amount": "235.979696",
    "side": "sell",
    "cost": "0",
    "created_at": "2018-12-04T13:16:58.309938+01:00",
    "status": "created"
  },
  {
    "id": 7033300,
    "price": "32.888194",
    "amount": "432.81729",
    "remaining_amount": "432.81729",
    "side": "sell",
    "cost": "0",
    "created_at": "2018-12-04T13:16:57.309632+01:00",
    "status": "created"
  },
  {
    "id": 7033288,
    "price": "32.823571",
    "amount": "458.850473",
    "remaining_amount": "458.850473",
    "side": "sell",
    "cost": "0",
    "created_at": "2018-12-04T13:16:53.881117+01:00",
    "status": "created"
  },
  {
    "id": 7033265,
    "price": "32.887462",
    "amount": "406.845988",
    "remaining_amount": "406.845988",
    "side": "sell",
    "cost": "0",
    "created_at": "2018-12-04T13:16:46.226628+01:00",
    "status": "created"
  }
]

Cancel order

DELETE https://satangcorp.com/api/orders/{order_id}

https://satangcorp.com/api/v3/orders/{order_id}

Headers

NameTypeDescription

Signature

string

This field require an encrypt of API key and API secret

Authorization

string

This field require API key

Request Body

NameTypeDescription

pair

string

A string representing pair

Cancel all order

DELETE https://satangcorp.com/api/orders/all

https://satangcorp.com/api/v3/orders/all Cancel all open orders of a user

Headers

NameTypeDescription

Signature

string

This field require an encrypt of API key and API secret

Authorization

string

This field require API key

{}

Last updated