Order
Last updated
Last updated
Good to know: All the methods shown below are synced to an example Swagger file URL and are kept up to date automatically with changes to the API.
POST
https://dex-nodejs-bot-jbrvr.ondigitalocean.app/order/addOrder
Creates a new order
Name | Type | Description |
---|---|---|
{
"result": {
"txId": "0x....",
"type": "limit",
"direction": "buy",
"symbol": "ETH/USDT",
"amount": "2.4",
"address": "0x....",
"status": "Completed",
"chainId": "421611"
"time": "22-05-2022 | 12:24"
}
}
curl -X "POST"
https://dex-nodejs-bot-jbrvr.ondigitalocean.app/order/add
-d symbol='ETH/USDT'
-d type='limit'
-d direction='buy'
-d price='1850'
-d amount='2.4'
-d chainId='421611'
-d privateKey='0x*****************************'
$ npm install node-fetch --save
const fetch = require('node-fetch');
const url = 'https://dex-nodejs-bot-jbrvr.ondigitalocean.app/order/add';
const options = {
method: 'POST',
headers: {
Accept: 'application/json',
'Content-Type': 'application/json'
},
body: JSON.stringify({
symbol: 'ETH/USDT',
type: 'limit',
direction: 'buy',
price: '1850',
amount: '2.4',
chainId: '421611',
privateKey: '0x************'
})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));
$ python -m pip install requests
import requests
url = "https://dex-nodejs-bot-jbrvr.ondigitalocean.app/order/add"
payload = {
symbol: 'ETH/USDT',
type: 'limit',
direction: 'buy',
price: '1850',
amount: '2.4',
chainId: '421611',
privateKey: '0x************'
}
headers = {
"Accept": "application/json",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
POST
https://dex-nodejs-bot-jbrvr.ondigitalocean.app/order/cancelOrder
{
"result": {
"txId": "0x....",
"chainId": "421611",
"orderId": "0x..."
"symbol": "ETH/USDT",
"time": "22-05-2022 | 12:32"
}
}
curl -X "POST"
https://dex-nodejs-bot-jbrvr.ondigitalocean.app/order/cancel
-d symbol='ETH/USDT'
-d orderId='0x..'
-d chainId='421611'
-d privateKey='0x*****************************'
$ npm install node-fetch --save
const fetch = require('node-fetch');
const url = 'https://dex-nodejs-bot-jbrvr.ondigitalocean.app/order/cancel';
const options = {
method: 'POST',
headers: {
Accept: 'application/json',
'Content-Type': 'application/json'
},
body: JSON.stringify({
symbol: 'ETH/USDT',
orderId: '0x*******',
chainId: '421611',
privateKey: '0x************'
})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));
$ python -m pip install requests
import requests
url = "https://dex-nodejs-bot-jbrvr.ondigitalocean.app/order/cancel"
payload = {
symbol: 'ETH/USDT',
orderId: '0x*******',
chainId: '421611',
privateKey: '0x************'
}
headers = {
"Accept": "application/json",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
GET
https://dex-nodejs-bot-jbrvr.ondigitalocean.app/order/openOrders
{
"data": [
{
"id": "0x0a456ee9edd7d7315e49e76ac9a2f9a2220a2f0bc4085dcab8ae5dd6fbc73a9c",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.2",
"usdSize": 1000,
"price": "5000.0",
"side": "sell",
"fee": 0,
"status": "open",
"timestamp": 1653583772
},
{
"id": "0xf632b6723ad93fc2de7b040f4f706b4adc9806926e6340ef91c61b3e7acf0f89",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "2.0",
"usdSize": 10000,
"price": "5000.0",
"side": "sell",
"fee": 0,
"status": "open",
"timestamp": 1653514402
},
{
"id": "0x3af08b54c7e7817c1fc22d08af8f606a5e793c42ec471fff540cd8524ded44ee",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "2.0",
"usdSize": 10000,
"price": "5000.0",
"side": "sell",
"fee": 0,
"status": "open",
"timestamp": 1653514402
},
{
"id": "0xfc974524546fd1d8fb7346af7d6abccdb897b8dbdce0b129263a4c4d4be81e5a",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.3",
"usdSize": 1500,
"price": "5000.0",
"side": "sell",
"fee": 0,
"status": "open",
"timestamp": 1653414162
}
]
}
curl -d chainId='421611'
-d account='0x0a52C4Cd73157bcfDD4a7c570106016db2749B05'
-G https://dex-nodejs-bot-jbrvr.ondigitalocean.app/order/openOrders
$ npm install node-fetch --save
const fetch = require('node-fetch');
const url = 'https://dex-nodejs-bot-jbrvr.ondigitalocean.app/order/openOrders?account=0xd7151350B7C97E6B53e800dc3b629A00306Ab9B5&chainId=421611';
fetch(url)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));
$ python -m pip install requests
import requests
url = "https://dex-nodejs-bot-jbrvr.ondigitalocean.app/order/openOrders"
payload = {
chainId: '421611',
account: '0x0a52C4Cd73157bcfDD4a7c570106016db2749B05'
}
response = requests.get(url, params=payload)
print(response.text)
GET
https://dex-nodejs-bot-jbrvr.ondigitalocean.app/order/filledOrders
{
"result": [
{
"id": "0x76908cccc1a3513238753225f38cdb2d70fc8bf0541f623c146fc1f6c776c938",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "3400.0",
"side": "sell",
"fee": 4.25,
"status": "filled",
"timestamp": 1653622362
},
{
"id": "0xb614c3b5ca01eed41d1dcab222c44505add999ea8be53f236342155c32193140",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "3300.0",
"side": "sell",
"fee": 4.125,
"status": "filled",
"timestamp": 1653622362
},
{
"id": "0xa2f6077fd07114990b85abd735a529bd86c479d72b59361e931cdd72c90ec9bb",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "5000.0",
"side": "buy",
"fee": 1000000000,
"status": "filled",
"timestamp": 1653583833
},
{
"id": "0xf8e4c562dc9863e796f17a3edc36254ce6c1b001b60dab0c9168c60c27c8b9d8",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "1750.0",
"side": "buy",
"fee": 1000000000,
"status": "filled",
"timestamp": 1653583712
},
{
"id": "0x788f3c6e1760dc58e6afd0ddbad641be0be79907fbd02409a1374a800d23cec2",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "1650.0",
"side": "buy",
"fee": 1250000000,
"status": "filled",
"timestamp": 1653583712
},
{
"id": "0xcdb680b6a588356c00f55c97f370adf7ef1649f7a3c34fdb153cdca103d8dec1",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "1900.0",
"side": "buy",
"fee": 1000000000,
"status": "filled",
"timestamp": 1653583712
},
{
"id": "0x3c7a0b6bab43f098515da57683c0c8a451c7f32104925fa216f68eddd888f97b",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "1450.0",
"side": "buy",
"fee": 1250000000,
"status": "filled",
"timestamp": 1653583712
},
{
"id": "0x9a37cba2a77c832f3d12b6275ac815a2406ff1c251c708c653d162e019e598b9",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "1500.0",
"side": "buy",
"fee": 1250000000,
"status": "filled",
"timestamp": 1653583712
},
{
"id": "0x2ba8f2fec6f14bb221364a88704ba16933d4baf606c3cb814ebfc6d402abc625",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "1950.0",
"side": "buy",
"fee": 1000000000,
"status": "filled",
"timestamp": 1653583712
},
{
"id": "0xc5e2403a5af0a2e28d023663d97556923e037d361be0454ec3f29f978ed47cd8",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "1550.0",
"side": "buy",
"fee": 1250000000,
"status": "filled",
"timestamp": 1653583712
},
{
"id": "0xc0a4c18d3b16734b23e0a3d86bdfcb8810c79e0c44cb2577e43e403a0e8f1763",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "1700.0",
"side": "buy",
"fee": 1250000000,
"status": "filled",
"timestamp": 1653583712
},
{
"id": "0xce6d64559bc919f423f7ed70e924ab2ec67502099f20fefed46fb89ea0f96d88",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "1600.0",
"side": "buy",
"fee": 1250000000,
"status": "filled",
"timestamp": 1653583712
},
{
"id": "0xcd4372480f143defd3cebb1b228befc99c369d7c4f94c47b358d8631e7acc0f9",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "5000.0",
"side": "buy",
"fee": 1000000000,
"status": "filled",
"timestamp": 1653583652
},
{
"id": "0xdad88313b92782908ce59e4ac5653a3f595a9891ed0045f92123053fdaa1971c",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "5000.0",
"side": "buy",
"fee": 1000000000,
"status": "filled",
"timestamp": 1653583532
},
{
"id": "0x46ae9c3a7ef61bea6212623aff0356259ffa3cf10ec3db8e4bd005f941d527c7",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "5000.0",
"side": "buy",
"fee": 1000000000,
"status": "filled",
"timestamp": 1653583411
},
{
"id": "0x57a4bd641c132dce60a3e76fbf2aca47dd0b290ea43f33fcc99e293d383c7f31",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "3200.0",
"side": "buy",
"fee": 1000000000,
"status": "filled",
"timestamp": 1653583411
},
{
"id": "0x9ffeabd60b8bcc071f38b7a9528bdf0f5368d3777f6c602286bd3d2b25223c49",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "3200.0",
"side": "sell",
"fee": 2.8,
"status": "filled",
"timestamp": 1653583411
},
{
"id": "0x2dbbff0633cfa61c5c916aa4d2917d79249ae4bbf1c09a9e33316bda8328718f",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "2200.0",
"side": "buy",
"fee": 2900000000,
"status": "filled",
"timestamp": 1653583381
},
{
"id": "0x98e2192163197b1c8daef937686c698ede7e983a226db377c35122e4602d13de",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "2000.0",
"side": "buy",
"fee": 1000000000,
"status": "filled",
"timestamp": 1653583381
},
{
"id": "0x20743cc4024093e3095e17ed28fd5f8ec9ea3dfbf417ffe30ac694e53a9b6a9e",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "2700.0",
"side": "sell",
"fee": 1.35,
"status": "filled",
"timestamp": 1653576036
},
{
"id": "0x34511d2f55b136c73a7ced7ec77925dd7b1d2f11dfbe0551934de64e65585e85",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "2500.0",
"side": "sell",
"fee": 26.25,
"status": "filled",
"timestamp": 1653576036
},
{
"id": "0x79777e242326e246e8d319bebaf5fd9359b065e4a526afd19133feb18a24e781",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "2800.0",
"side": "sell",
"fee": 1.12,
"status": "filled",
"timestamp": 1653576036
},
{
"id": "0x6a2f65d3bd5d91bdc58765abeba8750862ae0943d5528f910c56055e64d7d182",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "3100.0",
"side": "sell",
"fee": 1.55,
"status": "filled",
"timestamp": 1653576036
},
{
"id": "0x949b35d88269fa89dafa00e7c2f20e08bd277e9d22867168771c2f80d5cb98e6",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "2900.0",
"side": "sell",
"fee": 1.45,
"status": "filled",
"timestamp": 1653576036
},
{
"id": "0x478d8ec86973884e06a1dda90697cb59a45fbc52e0b13cfb842212480fc975c2",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "3000.0",
"side": "sell",
"fee": 1.2,
"status": "filled",
"timestamp": 1653576036
},
{
"id": "0xeb7d0fe517745e79c2d44e2506da0e15ef55611a6da72db2d6426ffacd8bc671",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "2500.0",
"side": "buy",
"fee": 1200000000,
"status": "filled",
"timestamp": 1653514763
},
{
"id": "0xe674f277165be72b50f3ea44f3538a66cc3bb145fc222ca10c64ae5778034cbf",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "2500.0",
"side": "buy",
"fee": 1300000000,
"status": "filled",
"timestamp": 1653514763
},
{
"id": "0xdad9dc5665c4b7148979b85e10c758e4ff8bff0f897bf8545bcd6c4af19529c7",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "2500.0",
"side": "buy",
"fee": 2000000000,
"status": "filled",
"timestamp": 1653514763
},
{
"id": "0x5e9d9dd38b8715fb18a4b5f4bcab62d2742c7297bc0d3635db871ea69285ae36",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "5000.0",
"side": "buy",
"fee": 40000000000,
"status": "filled",
"timestamp": 1653514583
},
{
"id": "0x10646d4226d82f970eb1fb97a957dd8914ab64e9081d5a47fed77cbc9a74069b",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "5000.0",
"side": "buy",
"fee": 1546200000,
"status": "filled",
"timestamp": 1653514522
},
{
"id": "0x8b2d7a97d1edbc746e8371c00f6fd1e0702dc925db34722c3332a61cc02dfea0",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "5000.0",
"side": "buy",
"fee": 8000000000,
"status": "filled",
"timestamp": 1653514462
},
{
"id": "0x9bf5584669fa458292f57ddfefe77793bc262ee8c34d507ea6c44fa84c4adde4",
"pair": "GRT/ENJ",
"tokenA": "GRT",
"tokenB": "ENJ",
"size": "0.0",
"usdSize": 0,
"price": "3.7",
"side": "sell",
"fee": 0.39590000000000003,
"status": "filled",
"timestamp": 1653500448
},
{
"id": "0xc73c4782e4a59a6dc2cbc9abc87480bc1a6f0bdbb0fa0701b8ca62692f82513a",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "2820.0",
"side": "sell",
"fee": 4.23,
"status": "filled",
"timestamp": 1653499712
},
{
"id": "0xf57493bb235c67b47193859f6b6603548bcaf71ad3698ee5ebf8dd091e0b34f1",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "1850.0",
"side": "sell",
"fee": 3.7,
"status": "filled",
"timestamp": 1653429129
},
{
"id": "0xf78125475fd44b3421a8c77b91a2155c24a73a3e59783a54d0d10f169997b9f7",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "2000.0",
"side": "buy",
"fee": 600000000,
"status": "filled",
"timestamp": 1653429024
},
{
"id": "0x43db41b37a9325414c77485342c9592e4b26e1c618f4cc5a0473d1079fb7af2b",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "1800.0",
"side": "sell",
"fee": 1.85,
"status": "filled",
"timestamp": 1653425582
},
{
"id": "0x51d569af51a8179272679703be4d261871f5771b87e4024a958e93b4e1b001f7",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "2000.0",
"side": "sell",
"fee": 2,
"status": "filled",
"timestamp": 1653423780
},
{
"id": "0x2722c2502ecbea68efdf1b08db19f2a84e4970a461c615343b9e1d9dbed4084b",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "2000.0",
"side": "sell",
"fee": 4,
"status": "filled",
"timestamp": 1653417746
},
{
"id": "0xc50fad976ab403b9bd37c2374350d14420d7af3c6b41a5cf2ff97aaac804313b",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "2000.0",
"side": "sell",
"fee": 2,
"status": "filled",
"timestamp": 1653417292
},
{
"id": "0x3d1cb54dcc791dd24f5610bb8d268a978bb20d545362cf6169f1a29f63b95823",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "1800.0",
"side": "sell",
"fee": 3.7,
"status": "filled",
"timestamp": 1653417202
},
{
"id": "0x5d1d8a0c7460a3413e472ec202f0ef965aee0e4f2fd4a12103a641a02ed19d09",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "1800.0",
"side": "sell",
"fee": 3.7,
"status": "filled",
"timestamp": 1653417157
},
{
"id": "0x577d042344a7b1f9ed9ca8c4dee483f40ba92527b00235339129551892859a59",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "1800.0",
"side": "sell",
"fee": 3.7,
"status": "filled",
"timestamp": 1653417097
},
{
"id": "0x40bc221dda398b15cde892c7fec7c4beb2464c27121c84678a8bf57d7387d532",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "1850.0",
"side": "buy",
"fee": 1800000000,
"status": "filled",
"timestamp": 1653417097
},
{
"id": "0x9ec4c333fc24c0000454c4f08ea97fa93b347ad744c5d246435c72e73bab5489",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "1800.0",
"side": "sell",
"fee": 7.8,
"status": "filled",
"timestamp": 1653416992
},
{
"id": "0x4588883128147ac026fbc8b4f579b017588cfbb2d60604fb2e205c84f492f7df",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "2000.0",
"side": "buy",
"fee": 1000000000,
"status": "filled",
"timestamp": 1653416992
},
{
"id": "0x13b5fb0e9e16e2a05655d76496f30eeaf4bbadd5eea17fe47d369c1af829cfa4",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "2000.0",
"side": "buy",
"fee": 800000000,
"status": "filled",
"timestamp": 1653416992
},
{
"id": "0xd5761b6ae96a5b878680cc35aa8876e12df66e7ce2f0e91995d94bc7813067fa",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "3000.0",
"side": "sell",
"fee": 1.8,
"status": "filled",
"timestamp": 1653414192
},
{
"id": "0xb968f033a4a281e76dcc9eb2e7e0a00a5c687f32200fdb4181f2d509ba97c285",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "3000.0",
"side": "sell",
"fee": 3.6,
"status": "filled",
"timestamp": 1653409942
},
{
"id": "0xf7eedc3cfa6775e3e97fc3dd76025585e7ab42bf9c6e4d019f2fa7afc6f68425",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "3000.0",
"side": "buy",
"fee": 4000000000,
"status": "filled",
"timestamp": 1653372583
},
{
"id": "0x5c38d9aff62ee915225cb8d79e1951f00696fcc4f7782979b26eeffe2a425092",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "5000.0",
"side": "buy",
"fee": 2000000000,
"status": "filled",
"timestamp": 1653075438
},
{
"id": "0xe5bfe110323ce37fa5b9fb0bf55e9294ce47ad47848e024003346aa908b1bbd5",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "1850.0",
"side": "sell",
"fee": 1.85,
"status": "filled",
"timestamp": 1653075273
},
{
"id": "0xa0d2f544c7f4ba4b9a2bed2f302a7d0914571cca5ab20452fe5de82640add9bd",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "1800.0",
"side": "sell",
"fee": 4.06,
"status": "filled",
"timestamp": 1653075153
},
{
"id": "0x28947f72797e40f4972f2c26d955b54e7bdf4980423a967b5f6f6c058e3603db",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "2400.0",
"side": "sell",
"fee": 7.2,
"status": "filled",
"timestamp": 1653073757
},
{
"id": "0x4bcea35b1b4055c1430c5a89e816b7934143b2f89a5d9f81eebe9a193e626814",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "1700.0",
"side": "sell",
"fee": 9.48,
"status": "filled",
"timestamp": 1652989763
},
{
"id": "0xad7e3f3c2283d16cc4b403e6b892fec6e3202a2caef2c7f5e97a09c9be42e77f",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "2000.0",
"side": "buy",
"fee": 2000000000,
"status": "filled",
"timestamp": 1652989763
},
{
"id": "0x5bfa5ecbaf03e496962d0fb5516c8bceba6e2a792b8d13c94da63724e336c044",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "2450.0",
"side": "buy",
"fee": 600000000,
"status": "filled",
"timestamp": 1652989643
},
{
"id": "0x9fb204bac9a141264117fb2348087da0f0e26dbcd04b8f62e75139390984d3e9",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "10.0",
"side": "buy",
"fee": 1000000000,
"status": "filled",
"timestamp": 1652981583
},
{
"id": "0x716a83cdc9fc9df517bc29d265889b2b4bfdb62c08a71c6258327e6d60b80893",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "10.0",
"side": "buy",
"fee": 200000000,
"status": "filled",
"timestamp": 1652981583
},
{
"id": "0xf85ff5ba870fb736715ec725f8457bfb4c0f75c2bd9e29a39ea36127458c000a",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "10.0",
"side": "buy",
"fee": 1000000000,
"status": "filled",
"timestamp": 1652981583
},
{
"id": "0xc1e10f4d30beb49cc07cef9363ba418ceaf900c7de6272f4b40fa690c62f2785",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "10.0",
"side": "buy",
"fee": 100000000,
"status": "filled",
"timestamp": 1652981583
},
{
"id": "0xce7513df553f67860a9f1899c51541b37d346eda94469b72c656843d7b4fa531",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "20.0",
"side": "sell",
"fee": 0.1002,
"status": "filled",
"timestamp": 1652981448
},
{
"id": "0x1b761b95945e823aa68843b576ee2ea1367eb6241aa06847d05e63a5de81eb78",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "20.0",
"side": "buy",
"fee": 6590000000,
"status": "filled",
"timestamp": 1652981448
},
{
"id": "0x2ba3ec4158bb6262373797af1a38608ff246f95bc15625bbc1e96c9ddb239a73",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "20.0",
"side": "buy",
"fee": 1000000000,
"status": "filled",
"timestamp": 1652981448
},
{
"id": "0x6db6f07a37a5f7465b1c07adc4f5b959792c466e42800a4ea32c6d25d3a64611",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "5000.0",
"side": "buy",
"fee": 4000000000,
"status": "filled",
"timestamp": 1652981328
},
{
"id": "0xdcd840bcc3af1139a06ea31452c8680b364f1f4d20df9f5bbfc0d2e1dfdd42e6",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "30.0",
"side": "sell",
"fee": 0.12,
"status": "filled",
"timestamp": 1652981267
},
{
"id": "0xf6ae56d7af84f567a445c4bbd0e85449d79901dd6ace9666fcea0ca4066ebac5",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "30.0",
"side": "buy",
"fee": 4000000000,
"status": "filled",
"timestamp": 1652981267
},
{
"id": "0x5de23cb11d43c17b632a63e14c0ac03bf23cee5e925bfeeb5235bb80c7b46b49",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "30.0",
"side": "buy",
"fee": 4000000000,
"status": "filled",
"timestamp": 1652981267
},
{
"id": "0x7d3cc9d60694c354cfecb3e42aa239fdf60f8679df6f1a0ec3e357b9abb168e4",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "30.0",
"side": "buy",
"fee": 4000000000,
"status": "filled",
"timestamp": 1652981207
},
{
"id": "0x97aed4bbb6a1b383708d1d94ecbf53fe9c555d575b1227965858da2134a08993",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "30.0",
"side": "sell",
"fee": 0.53417,
"status": "filled",
"timestamp": 1652981207
},
{
"id": "0xd0e62096098e1b5b4e17d7863a99e1cc3009942f22c8865cb509ff3bf9bb701c",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "22.0",
"side": "sell",
"fee": 0.0132,
"status": "filled",
"timestamp": 1652981117
},
{
"id": "0x4aa1d2c9a8bffe2360c01d055eeaee01a547dd7aecaf0458c2d90ef80c2f9b69",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "22.0",
"side": "buy",
"fee": 4000000000,
"status": "filled",
"timestamp": 1652981117
},
{
"id": "0xffcb7158f1c1ccfaae135d2ac0cb6c543b02f1e78cc7a737485e39390359617c",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.0",
"usdSize": 0,
"price": "22.0",
"side": "buy",
"fee": 100000000,
"status": "filled",
"timestamp": 1652973819
}
]
}"breed": "Golden Retriever",
}
curl -d chainId='421611'
-d account='0x0a52C4Cd73157bcfDD4a7c570106016db2749B05'
-G https://dex-nodejs-bot-jbrvr.ondigitalocean.app/order/filledOrders
$ npm install node-fetch --save
const fetch = require('node-fetch');
const url = 'https://dex-nodejs-bot-jbrvr.ondigitalocean.app/order/filledOrders?account=0xd7151350B7C97E6B53e800dc3b629A00306Ab9B5&chainId=421611';
fetch(url)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));
$ python -m pip install requests
import requests
url = "https://dex-nodejs-bot-jbrvr.ondigitalocean.app/order/filledOrders"
payload = {
chainId: '421611',
account: '0x0a52C4Cd73157bcfDD4a7c570106016db2749B05'
}
response = requests.get(url, params=payload)
print(response.text)
GET
https://dex-nodejs-bot-jbrvr.ondigitalocean.app/order/cancelledOrders
{
"result": [
{
"id": "0x07f1d635094eb7f93936b9e167151167b39caf18dcac7a97a7cb05bed2be621c",
"pair": "ETH/USDT",
"tokenA": "ETH",
"tokenB": "USDT",
"size": "0.5",
"usdSize": 2500,
"price": "5000.0",
"side": "sell",
"fee": 0,
"status": "canceled",
"timestamp": 1653357565
}
]
}
url -d chainId='421611'
-d account='0x0a52C4Cd73157bcfDD4a7c570106016db2749B05'
-G https://dex-nodejs-bot-jbrvr.ondigitalocean.app/order/cancelledOrders
$ npm install node-fetch --save
const fetch = require('node-fetch');
const url = 'https://dex-nodejs-bot-jbrvr.ondigitalocean.app/order/cancelledOrders?account=0xd7151350B7C97E6B53e800dc3b629A00306Ab9B5&chainId=421611';
fetch(url)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));
$ python -m pip install requests
import requests
url = "https://dex-nodejs-bot-jbrvr.ondigitalocean.app/order/cancelledOrders"
payload = {
chainId: '421611',
account: '0x0a52C4Cd73157bcfDD4a7c570106016db2749B05'
}
response = requests.get(url, params=payload)
print(response.text)
GET
https://dex-nodejs-bot-jbrvr.ondigitalocean.app/order/buyOrderbooks
{
"result": [
{
"pair": "ETH/USDT",
"amount": 30.3,
"price": 2200,
"total": 66000,
"timestamp": "05:19:14"
},
{
"pair": "ETH/USDT",
"amount": 408.2,
"price": 1000,
"total": 407200,
"timestamp": "04:45:32"
},
{
"pair": "ETH/USDT",
"amount": 1000,
"price": 10,
"total": 10000,
"timestamp": "05:26:47"
},
{
"pair": "ETH/USDT",
"amount": 0.7,
"price": 0.1,
"total": 0.06999999999999999,
"timestamp": "08:06:34"
}
]
}
curl -d chainId='421611'
-d pair='ETH/USDT'
-G https://dex-nodejs-bot-jbrvr.ondigitalocean.app/order/buyOrderbooks
$ npm install node-fetch --save
const fetch = require('node-fetch');
const url = 'https://dex-nodejs-bot-jbrvr.ondigitalocean.app/order/buyOrderbooks?pair=ETH/USDT&chainId=421611';
fetch(url)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));
$ python -m pip install requests
import requests
url = "https://dex-nodejs-bot-jbrvr.ondigitalocean.app/order/buyOrderbooks"
payload = {
chainId: '421611',
pair: 'ETH/USDT'
}
response = requests.get(url, params=payload)
print(response.text)
GET
https://dex-nodejs-bot-jbrvr.ondigitalocean.app/order/sellOrderbooks
{
"result": [
{
"pair": "ETH/USDT",
"amount": 79.1559,
"price": 5000,
"total": 1500,
"timestamp": "04:49:32"
},
{
"pair": "ETH/USDT",
"amount": 1,
"price": 4000,
"total": 4000,
"timestamp": "11:29:21"
}
]
}
curl -d chainId='421611'
-d pair='ETH/USDT'
-G https://dex-nodejs-bot-jbrvr.ondigitalocean.app/order/sellOrderbooks
$ npm install node-fetch --save
const fetch = require('node-fetch');
const url = 'https://dex-nodejs-bot-jbrvr.ondigitalocean.app/order/sellOrderbooks?pair=ETH/USDT&chainId=421611';
fetch(url)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));
$ python -m pip install requests
import requests
url = "https://dex-nodejs-bot-jbrvr.ondigitalocean.app/order/sellOrderbooks"
payload = {
chainId: '421611',
pair: 'ETH/USDT'
}
response = requests.get(url, params=payload)
print(response.text)
GET
https://dex-nodejs-bot-jbrvr.ondigitalocean.app/order/tradesOHCL
{
"result": [
{
"timestamp": 1652949000,
"open": 1200,
"high": 5000,
"low": 10,
"close": 1700,
"last": 1700,
"volume": 91.304
},
{
"timestamp": 1653467400,
"open": 1800,
"high": 5000,
"low": 1800,
"close": 2500,
"last": 2500,
"volume": 124.7386
},
{
"timestamp": 1653640200,
"open": 3300,
"high": 4000,
"low": 1000,
"close": 3600,
"last": 3600,
"volume": 7.0835
},
{
"timestamp": 1652887800,
"open": 1200,
"high": 5000,
"low": 100,
"close": 20,
"last": 20,
"volume": 5.811
},
{
"timestamp": 1653899400,
"open": 4000,
"high": 4000,
"low": 2600,
"close": 2600,
"last": 2600,
"volume": 14
},
{
"timestamp": 1653035400,
"open": 2400,
"high": 5000,
"low": 1800,
"close": 5000,
"last": 5000,
"volume": 70.5
},
{
"timestamp": 1653294600,
"open": 5000,
"high": 5000,
"low": 5000,
"close": 5000,
"last": 5000,
"volume": 5.34
},
{
"timestamp": 1653381000,
"open": 5000,
"high": 5000,
"low": 1800,
"close": 1850,
"last": 1850,
"volume": 68.8
},
{
"timestamp": 1653553800,
"open": 2500,
"high": 5000,
"low": 1000,
"close": 3300,
"last": 3300,
"volume": 346.7
},
{
"timestamp": 1654072200,
"open": 2600,
"high": 2600,
"low": 2300,
"close": 2500,
"last": 2500,
"volume": 181
}
]
}
curl -d chainId='421611'
-d pair='ETH/USDT'
-G https://dex-nodejs-bot-jbrvr.ondigitalocean.app/order/tradeOHCL
$ npm install node-fetch --save
const fetch = require('node-fetch');
const url = 'https://dex-nodejs-bot-jbrvr.ondigitalocean.app/order/tradesOHCL?pair=ETH/USDT&chainId=421611';
fetch(url)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));
$ python -m pip install requests
import requests
url = "https://dex-nodejs-bot-jbrvr.ondigitalocean.app/order/tradesOHCL"
payload = {
chainId: '421611',
pair: 'ETH/USDT'
}
response = requests.get(url, params=payload)
print(response.text)
GET
https://dex-nodejs-bot-jbrvr.ondigitalocean.app/order/tradeHistories
{
"result": [
{
"pair": "ETH/USDT",
"traderaddress": "0x71c08a09209438d9724c5bcc1685b6010dfd1092",
"amount": "30.0",
"price": "2500.0",
"side": "sell",
"type": "market",
"timestamp": "2022-06-01 05:23"
},
{
"pair": "ETH/USDT",
"traderaddress": "0x1c477d7c0b83c1848545cdcb5be706f3a07e2e56",
"amount": "0.1",
"price": "2300.0",
"side": "buy",
"type": "limit",
"timestamp": "2022-06-01 05:23"
},
{
"pair": "ETH/USDT",
"traderaddress": "0x37a3ff4540204bfeba04336273894171afa3c5e8",
"amount": "0.1",
"price": "2400.0",
"side": "buy",
"type": "limit",
"timestamp": "2022-06-01 05:23"
},
{
"pair": "ETH/USDT",
"traderaddress": "0x1c477d7c0b83c1848545cdcb5be706f3a07e2e56",
"amount": "0.1",
"price": "2500.0",
"side": "buy",
"type": "limit",
"timestamp": "2022-06-01 05:23"
},
{
"pair": "ETH/USDT",
"traderaddress": "0x1c477d7c0b83c1848545cdcb5be706f3a07e2e56",
"amount": "5.0",
"price": "2600.0",
"side": "buy",
"type": "limit",
"timestamp": "2022-06-01 05:21"
},
{
"pair": "ETH/USDT",
"traderaddress": "0x1c477d7c0b83c1848545cdcb5be706f3a07e2e56",
"amount": "5.0",
"price": "2600.0",
"side": "buy",
"type": "limit",
"timestamp": "2022-06-01 05:21"
},
{
"pair": "ETH/USDT",
"traderaddress": "0x1c477d7c0b83c1848545cdcb5be706f3a07e2e56",
"amount": "5.0",
"price": "2600.0",
"side": "buy",
"type": "limit",
"timestamp": "2022-06-01 05:21"
},
{
"pair": "ETH/USDT",
"traderaddress": "0x1c477d7c0b83c1848545cdcb5be706f3a07e2e56",
"amount": "5.0",
"price": "2600.0",
"side": "buy",
"type": "limit",
"timestamp": "2022-06-01 05:21"
},
{
"pair": "ETH/USDT",
"traderaddress": "0x1c477d7c0b83c1848545cdcb5be706f3a07e2e56",
"amount": "5.0",
"price": "2600.0",
"side": "buy",
"type": "limit",
"timestamp": "2022-06-01 05:21"
},
{
"pair": "ETH/USDT",
"traderaddress": "0x1c477d7c0b83c1848545cdcb5be706f3a07e2e56",
"amount": "5.0",
"price": "2600.0",
"side": "buy",
"type": "limit",
"timestamp": "2022-06-01 05:21"
},
{
"pair": "ETH/USDT",
"traderaddress": "0x1c477d7c0b83c1848545cdcb5be706f3a07e2e56",
"amount": "5.0",
"price": "2600.0",
"side": "buy",
"type": "limit",
"timestamp": "2022-06-01 05:21"
}
]
}
curl -d chainId='421611'
-d pair='ETH/USDT'
-G https://dex-nodejs-bot-jbrvr.ondigitalocean.app/order/tradeHistories
$ npm install node-fetch --save
const fetch = require('node-fetch');
const url = 'https://dex-nodejs-bot-jbrvr.ondigitalocean.app/order/tradeHistories?pair=ETH/USDT&chainId=421611';
fetch(url)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));
$ python -m pip install requests
import requests
url = "https://dex-nodejs-bot-jbrvr.ondigitalocean.app/order/tradeHistories"
payload = {
chainId: '421611',
pair: 'ETH/USDT'
}
response = requests.get(url, params=payload)
print(response.text)
GET
https://dex-nodejs-bot-jbrvr.ondigitalocean.app/order/openPositions
{
"result": [
{
"id": "0x0a456ee9edd7d7315e49e76ac9a2f9a2220a2f0bc4085dcab8ae5dd6fbc73a9c",
"pair": "ETH/USDT",
"amount": "0.2",
"price": "5000.0",
"side": "sell",
"traderaddress": "0x0a52c4cd73157bcfdd4a7c570106016db2749b05",
"status": "0",
"timestamp": 1653583772
},
{
"id": "0x3af08b54c7e7817c1fc22d08af8f606a5e793c42ec471fff540cd8524ded44ee",
"pair": "ETH/USDT",
"amount": "2.0",
"price": "5000.0",
"side": "sell",
"traderaddress": "0x0a52c4cd73157bcfdd4a7c570106016db2749b05",
"status": "0",
"timestamp": 1653514402
},
{
"id": "0xf632b6723ad93fc2de7b040f4f706b4adc9806926e6340ef91c61b3e7acf0f89",
"pair": "ETH/USDT",
"amount": "2.0",
"price": "5000.0",
"side": "sell",
"traderaddress": "0x0a52c4cd73157bcfdd4a7c570106016db2749b05",
"status": "0",
"timestamp": 1653514402
},
{
"id": "0xfc974524546fd1d8fb7346af7d6abccdb897b8dbdce0b129263a4c4d4be81e5a",
"pair": "ETH/USDT",
"amount": "0.3",
"price": "5000.0",
"side": "sell",
"traderaddress": "0x0a52c4cd73157bcfdd4a7c570106016db2749b05",
"status": "0",
"timestamp": 1653414162
}
]
}
curl -d chainId='421611'
-d pair='ETH/USDT'
-d account='0x0a52C4Cd73157bcfDD4a7c570106016db2749B05'
-G https://dex-nodejs-bot-jbrvr.ondigitalocean.app/order/openPositions
$ npm install node-fetch --save
const fetch = require('node-fetch');
const url = 'https://dex-nodejs-bot-jbrvr.ondigitalocean.app/order/openPositions?account=0x0a52C4Cd73157bcfDD4a7c570106016db2749B05&pair=ETH/USDT&chainId=421611';
fetch(url)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));
$ python -m pip install requests
import requests
url = "https://dex-nodejs-bot-jbrvr.ondigitalocean.app/order/openPositions"
payload = {
chainId: '421611',
pair: 'ETH/USDT',
account: '0x0a52C4Cd73157bcfDD4a7c570106016db2749B05'
}
response = requests.get(url, params=payload)
print(response.text)
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
symbol*
string
symbol name
type*
string
Order Type
privateKey*
string
Wallet Private Key
chainId*
string
Chain Id
direction*
string
Order Direction
price
string
Order Price
amount
string
Order Amount
symbol*
string
symbol name to cancel
orderId*
string
Open Order Id
privateKey*
string
Wallet Private Key
chainId*
string
Chain Id
account*
string
account address
chainId*
string
Chain Id
account*
string
account address
chainId*
string
Chain Id
chainId*
string
Chain Id
account*
string
account address
pair*
string
Pair
chainId*
string
Chain Id
pair*
string
Pair Name
chainId*
string
Chain Id
pair*
string
Pair name
chainId*
string
Chain Id
pair*
string
Pair name
chainId*
string
Chain Id
pair*
string
Pair name
chainId*
string
Chain Id
account
string
Account Address