Portfolio

Deposit

post
https://dex-nodejs-bot-jbrvr.ondigitalocean.app
/portfolio/deposit
Create Deposit
Shell
Node
Python
curl -X "POST"
https://dex-nodejs-bot-jbrvr.ondigitalocean.app/portfolio/deposit
-d from='0xd7151350B7C97E6B53e800dc3b629A00306Ab9B5'
-d symbol='ETH'
-d quantity='2.4'
-d privateKey='0x*****************************'
-d chainId='421611'
$ npm install node-fetch --save
const fetch = require('node-fetch');
const url = 'https://dex-nodejs-bot-jbrvr.ondigitalocean.app/portfolio/deposit';
const options = {
method: 'POST',
headers: {
Accept: 'application/json',
'Content-Type': 'application/json'
},
body: JSON.stringify({
from: 'string',
symbol: 'string',
quantity: 'string',
privateKey: 'string',
chainId: 'string'
})
};
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/portfolio/deposit"
payload = {
from: 'string',
symbol: 'string',
quantity: 'string',
privateKey: 'string',
chainId: 'string'
}
headers = {
"Accept": "application/json",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)

Withdraw

post
https://dex-nodejs-bot-jbrvr.ondigitalocean.app
/portfolio/withdraw
Create Withdraw
Shell
Node
Python
curl -X "POST"
https://dex-nodejs-bot-jbrvr.ondigitalocean.app/portfolio/withdraw
-d from='0xd7151350B7C97E6B53e800dc3b629A00306Ab9B5'
-d symbol='ETH'
-d quantity='2.4'
-d privateKey='0x*****************************'
-d chainId='421611'
$ npm install node-fetch --save
const fetch = require('node-fetch');
const url = 'https://dex-nodejs-bot-jbrvr.ondigitalocean.app/portfolio/withdraw';
const options = {
method: 'POST',
headers: {
Accept: 'application/json',
'Content-Type': 'application/json'
},
body: JSON.stringify({
from: 'string',
symbol: 'string',
quantity: 'string',
privateKey: 'string',
chainId: 'string'
})
};
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/portfolio/withdraw"
payload = {
from: 'string',
symbol: 'string',
quantity: 'string',
privateKey: 'string',
chainId: 'string'
}
headers = {
"Accept": "application/json",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)

Deposit Histories

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

Withdraw Histories

get
https://api.myapi.com/v1
/portfolio/withdrawHistories
Get Withdraw Histories
Shell
Node
Python
curl -X "GET"
"https://api.dexpools.com/v1/portfolio/withdrawHistories?account=0xd7151350B7C97E6B53e800dc3b629A00306Ab9B5&chainId=421611"
$ npm install node-fetch --save
const fetch = require('node-fetch');
const url = 'https://dex-nodejs-bot-jbrvr.ondigitalocean.app/portfolio/withdrawHistories?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/portfolio/withdrawHistories"
payload = {
chainId: '421611',
account: '0x0a52C4Cd73157bcfDD4a7c570106016db2749B05'
}
response = requests.get(url, params=payload)
print(response.text)
Last modified 5mo ago