Account

Get Asset Info

get
https://dex-nodejs-bot-jbrvr.ondigitalocean.app
/account/assetsInfo
Get Assets Info
Shell
Node
Python
curl -d chainId='421611'
-G https://dex-nodejs-bot-jbrvr.ondigitalocean.app/account/assetsInfo
$ npm install node-fetch --save
const fetch = require('node-fetch');
const url = 'https://dex-nodejs-bot-jbrvr.ondigitalocean.app/account/assetsInfo?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/account/assetsInfo"
payload = {
chainId: '421611',
}
response = requests.get(url, params=payload)
print(response.text)

Get Asset Balances

get
https://dex-nodejs-bot-jbrvr.ondigitalocean.app
/account/assetBalances
Get Asset Balances
Shell
Node
Python
curl -d chainId='421611'
-d account='0x0a52C4Cd73157bcfDD4a7c570106016db2749B05'
-G https://dex-nodejs-bot-jbrvr.ondigitalocean.app/account/assetBalances
$ npm install node-fetch --save
const fetch = require('node-fetch');
const url = 'https://dex-nodejs-bot-jbrvr.ondigitalocean.app/account/assetBalances?chainId=42161&account=0x0a52C4Cd73157bcfDD4a7c570106016db2749B05';
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/account/assetBalances"
payload = {
chainId: '421611',
account: '0x0a52C4Cd73157bcfDD4a7c570106016db2749B05'
}
response = requests.get(url, params=payload)
print(response.text)

Get Tradabale Asset Pairs

get
https://dex-nodejs-bot-jbrvr.ondigitalocean.app
/account/assetPairs
Get Tradable Asset Pairs
Shell
Node
Python
curl -d chainId='421611'
-G https://dex-nodejs-bot-jbrvr.ondigitalocean.app/account/assetPairs
$ npm install node-fetch --save
const fetch = require('node-fetch');
const url = 'https://dex-nodejs-bot-jbrvr.ondigitalocean.app/account/assetPairs?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/account/assetPairs"
payload = {
chainId: '421611',
}
response = requests.get(url, params=payload)
print(response.text)

Get Tradable Amounts

get
https://dex-nodejs-bot-jbrvr.ondigitalocean.app
/account/tradableAmounts
Get Tradable Amounts
Shell
Node
Python
curl -d chainId='421611'
-d account='0x0a52C4Cd73157bcfDD4a7c570106016db2749B05'
-G https://dex-nodejs-bot-jbrvr.ondigitalocean.app/account/tradableAmounts
$ npm install node-fetch --save
const fetch = require('node-fetch');
const url = 'https://dex-nodejs-bot-jbrvr.ondigitalocean.app/account/tradableAmounts?chainId=42161&account=0x0a52C4Cd73157bcfDD4a7c570106016db2749B05';
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/account/tradableAmounts"
payload = {
chainId: '421611',
account: '0x0a52C4Cd73157bcfDD4a7c570106016db2749B05'
}
response = requests.get(url, params=payload)
print(response.text)