Comment on page
Order
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
Add Order
Shell
Node
Python
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
Cancel Order
Shell
Node
Python
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
Get Open Orders
Shell
Node
Python
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
Get Filled Orders
Shell
Node
Python
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
Get Cancelled Orders
Shell
Node
Python
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
Get Buy Orderbooks
Shell
Node
Python
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
Get Sell OrderBooks
Shell
Node
Python
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
Get OHCL
Shell
Node
Python
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
Get Trade Histories
Shell
Node
Python
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
Get Open Positions
Shell
Node
Python
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)
Last modified 1yr ago