Get active orders:
GET /orders
Request parameters:
Parameter | Type | Description |
---|---|---|
pair_id | integer | Pair ID |
per_page |
integer
min: 10,
max: 100
|
Orders count
By default, is 50
|
page | integer | Page number |
Example response:
[
{
"id": 36,
"type": "limit",
"side": "sell",
"price": "2618",
"status": "active",
"full_size": "1",
"left_size": "1",
"full_amount": "2618",
"left_amount": "2618",
"pair": {
"id": 7,
"base": {
"id": 9,
"name": "UGOLD",
"description": "UGOLD"
},
"quote": {
"id": 7,
"name": "USDT",
"description": "USDT"
},
"exchange_url": "https:\/\/geniusdigital.org\/exchange\/ugold\/usdt"
}
},
{
"id": 37,
"type": "limit",
"side": "sell",
"price": "3000",
"status": "active",
"full_size": "0.1",
"left_size": "0.1",
"full_amount": "300",
"left_amount": "300",
"pair": {
"id": 7,
"base": {
"id": 9,
"name": "UGOLD",
"description": "UGOLD"
},
"quote": {
"id": 7,
"name": "USDT",
"description": "USDT"
},
"exchange_url": "https:\/\/geniusdigital.org\/exchange\/ugold\/usdt"
}
},
{
"id": 38,
"type": "limit",
"side": "sell",
"price": "3100",
"status": "active",
"full_size": "0.1",
"left_size": "0.1",
"full_amount": "310",
"left_amount": "310",
"pair": {
"id": 7,
"base": {
"id": 9,
"name": "UGOLD",
"description": "UGOLD"
},
"quote": {
"id": 7,
"name": "USDT",
"description": "USDT"
},
"exchange_url": "https:\/\/geniusdigital.org\/exchange\/ugold\/usdt"
}
}
]
GET /orders/{id}
Example response:
{
"id": 20,
"type": "limit",
"side": "sell",
"price": "1e-05",
"status": "completed",
"full_size": "10",
"left_size": "0",
"full_amount": "0.0001",
"left_amount": "-0.0009",
"pair": {
"id": 4,
"base": {
"id": 1,
"name": "ETH",
"description": "ETH"
},
"quote": {
"id": 7,
"name": "USDT",
"description": "USDT"
},
"exchange_url": "https:\/\/geniusdigital.org\/exchange\/eth\/usdt"
}
}
POST /orders
Request parameters:
Parameter | Type | Description |
---|---|---|
pair_id * | integer | Pair ID |
side * | string |
Order type
buy, sell
|
size * | numeric | Order value |
price * | numeric | Order price |
Example response:
{
"id": 20,
"type": "limit",
"side": "sell",
"price": "1e-05",
"status": "completed",
"full_size": "10",
"left_size": "0",
"full_amount": "0.0001",
"left_amount": "-0.0009",
"pair": {
"id": 4,
"base": {
"id": 1,
"name": "ETH",
"description": "ETH"
},
"quote": {
"id": 7,
"name": "USDT",
"description": "USDT"
},
"exchange_url": "https:\/\/geniusdigital.org\/exchange\/eth\/usdt"
}
}
DELETE /orders/{id}
Example response:
{
"id": 20,
"type": "limit",
"side": "sell",
"price": "1e-05",
"status": "completed",
"full_size": "10",
"left_size": "0",
"full_amount": "0.0001",
"left_amount": "-0.0009",
"pair": {
"id": 4,
"base": {
"id": 1,
"name": "ETH",
"description": "ETH"
},
"quote": {
"id": 7,
"name": "USDT",
"description": "USDT"
},
"exchange_url": "https:\/\/geniusdigital.org\/exchange\/eth\/usdt"
}
}
back
next