Account
Last updated
Last updated
GET
https://dex-nodejs-bot-jbrvr.ondigitalocean.app/account/assetsInfo
Name | Type | Description |
---|---|---|
{
"result": [
{
"image": "https://assets.coingecko.com/coins/images/1102/small/enjin-coin-logo.png?1547035078",
"chainId": "421611",
"usdPrice": "1.07",
"name": "Enjin Coin",
"address": "0x966431FD20eC8C78df5814329C8Bdb48B5f12dAe",
"symbol": "ENJ",
"decimals": 18,
"bytesSymbol": "0x454e4a0000000000000000000000000000000000000000000000000000000000"
},
{
"chainId": "421611",
"image": "https://assets.coingecko.com/coins/images/4713/small/matic-token-icon.png?1624446912",
"usdPrice": "1.08",
"bytesSymbol": "0x4d41544943000000000000000000000000000000000000000000000000000000",
"name": "Polygon",
"decimals": 18,
"address": "0xB8001E9B92605431E2192F93307583737425b63e",
"symbol": "MATIC"
},
{
"bytesSymbol": "0x4554480000000000000000000000000000000000000000000000000000000000",
"name": "Ethereum",
"symbol": "ETH",
"image": "https://assets.coingecko.com/coins/images/279/small/ethereum.png?1595348880",
"decimals": 18,
"address": "0x0d0fDd6a1BF333796a19B3df1433333044Da14Dd",
"chainId": "421611",
"usdPrice": "2790.11"
},
{
"decimals": 18,
"address": "0x2492e9597fAC8C9DA553307D157Af12c549BCB0B",
"symbol": "GRT",
"name": "The Graph",
"chainId": "421611",
"image": "https://assets.coingecko.com/coins/images/13397/small/Graph_Token.png?1608145566",
"usdPrice": "0.315",
"bytesSymbol": "0x4752540000000000000000000000000000000000000000000000000000000000"
},
{
"name": "Tether USD",
"chainId": "421611",
"decimals": 6,
"usdPrice": "1",
"bytesSymbol": "0x5553445400000000000000000000000000000000000000000000000000000000",
"symbol": "USDT",
"address": "0x6Fb0674Bd389110230d6c01edAe1cD76165Be0a6",
"image": "https://assets.coingecko.com/coins/images/325/small/Tether-logo.png?1598003707"
}
]
}
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
https://dex-nodejs-bot-jbrvr.ondigitalocean.app/account/assetBalances
{
"result": [
{
"symbol": "ENJ",
"balance": "876060.0"
},
{
"symbol": "MATIC",
"balance": "966000.0"
},
{
"symbol": "ETH",
"balance": "991877.0"
},
{
"symbol": "GRT",
"balance": "878300.0"
},
{
"symbol": "USDT",
"balance": "548700.0"
}
]
}
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
https://dex-nodejs-bot-jbrvr.ondigitalocean.app/account/assetPairs
{
"result": [
{
"pair": "0x4752542f55534454000000000000000000000000000000000000000000000000",
"symbol": "GRT/USDT",
"chainId": "421611",
"mintradeamount": "10",
"quotedisplaydecimals": "6",
"maxtradeamount": "10000000000000000000000",
"basedisplaydecimals": "6"
},
{
"basedisplaydecimals": "6",
"maxtradeamount": "10000000000000000000000",
"symbol": "ETH/USDT",
"chainId": "421611",
"pair": "0x4554482f55534454000000000000000000000000000000000000000000000000",
"quotedisplaydecimals": "6",
"mintradeamount": "10"
},
{
"quotedisplaydecimals": "6",
"symbol": "ETH/ENJ",
"mintradeamount": "10",
"basedisplaydecimals": "6",
"pair": "0x4554482f454e4a00000000000000000000000000000000000000000000000000",
"maxtradeamount": "10000000000000000000000",
"chainId": "421611"
},
{
"symbol": "GRT/MATIC",
"pair": "0x4752542f4d415449430000000000000000000000000000000000000000000000",
"chainId": "421611",
"basedisplaydecimals": "6",
"maxtradeamount": "10000000000000000000000",
"quotedisplaydecimals": "6",
"mintradeamount": "10"
},
{
"chainId": "421611",
"mintradeamount": "10",
"symbol": "ETH/GRT",
"pair": "0x4554482f47525400000000000000000000000000000000000000000000000000",
"maxtradeamount": "10000000000000000000000",
"quotedisplaydecimals": "6",
"basedisplaydecimals": "6"
},
{
"chainId": "421611",
"pair": "0x4752542f454e4a00000000000000000000000000000000000000000000000000",
"quotedisplaydecimals": "6",
"mintradeamount": "10",
"maxtradeamount": "10000000000000000000000",
"basedisplaydecimals": "6",
"symbol": "GRT/ENJ"
}
]
}
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
https://dex-nodejs-bot-jbrvr.ondigitalocean.app/account/tradableAmounts
{
"result": [
{
"address": "0x966431FD20eC8C78df5814329C8Bdb48B5f12dAe",
"availBalance": "13467.51",
"totalBalance": "13467.51",
"name": "Enjin Coin",
"symbol": "ENJ",
"image": "https://assets.coingecko.com/coins/images/1102/small/enjin-coin-logo.png?1547035078",
"usdPrice": "1.07",
"usdBalance": "14410.2357"
},
{
"address": "0xB8001E9B92605431E2192F93307583737425b63e",
"availBalance": "10999.488",
"totalBalance": "10999.488",
"name": "Polygon",
"symbol": "MATIC",
"image": "https://assets.coingecko.com/coins/images/4713/small/matic-token-icon.png?1624446912",
"usdPrice": "1.08",
"usdBalance": "11879.44704"
},
{
"address": "0x0d0fDd6a1BF333796a19B3df1433333044Da14Dd",
"availBalance": "5108.1519428",
"totalBalance": "5112.6519428",
"name": "Ethereum",
"symbol": "ETH",
"image": "https://assets.coingecko.com/coins/images/279/small/ethereum.png?1595348880",
"usdPrice": "2790.11",
"usdBalance": "14252305.817125708"
},
{
"address": "0x2492e9597fAC8C9DA553307D157Af12c549BCB0B",
"availBalance": "10799.58",
"totalBalance": "10799.58",
"name": "The Graph",
"symbol": "GRT",
"image": "https://assets.coingecko.com/coins/images/13397/small/Graph_Token.png?1608145566",
"usdPrice": "0.315",
"usdBalance": "3401.8677"
},
{
"address": "0x6Fb0674Bd389110230d6c01edAe1cD76165Be0a6",
"availBalance": "320611.02063",
"totalBalance": "320611.02063",
"name": "Tether USD",
"symbol": "USDT",
"image": "https://assets.coingecko.com/coins/images/325/small/Tether-logo.png?1598003707",
"usdPrice": "1",
"usdBalance": "320611.02063"
}
]
}
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)
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
chainId*
string
chainId
chainId*
string
Chain Id
account*
string
account address
chainId*
string
Chain Id
account*
string
account address
chainId*
string
Chain Id