Pricing
Prices, chart data for crypto and forex pairs
get
https://vela-public-server-prod-qxq2l.ondigitalocean.app/
pricing/{pairsType}
Get pair prices
Shell
Node
Python
curl --location 'https://vela-public-server-prod-qxq2l.ondigitalocean.app/pricing/crypto'
const axios = require('axios');
let config = {
method: 'get',
maxBodyLength: Infinity,
url: 'https://vela-public-server-prod-qxq2l.ondigitalocean.app/pricing/crypto',
headers: { }
};
axios(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});
import requests
url = "https://vela-public-server-prod-qxq2l.ondigitalocean.app/pricing/crypto"
payload={}
headers = {}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
get
https://vela-public-server-prod-qxq2l.ondigitalocean.app
/pricing/crypto/{pair}
Get pair price
Shell
Node
Python
curl --location 'https://vela-public-server-prod-qxq2l.ondigitalocean.app/pricing/crypto/ETH-USD'
const axios = require('axios');
let config = {
method: 'get',
maxBodyLength: Infinity,
url: 'https://vela-public-server-prod-qxq2l.ondigitalocean.app/pricing/crypto/ETH-USD',
headers: { }
};
axios(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});
import requests
url = "https://vela-public-server-prod-qxq2l.ondigitalocean.app/pricing/crypto/ETH-USD"
payload={}
headers = {}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
get
https://vela-public-server-prod-qxq2l.ondigitalocean.app
/pricing/charts/{assetType}/{pair}/{resolution}/{from}/{to}
Get chart data
Shell
Node
Python
curl --location 'https://vela-public-server-prod-qxq2l.ondigitalocean.app/pricing/charts/crypto/ETH-USD/5m/1669641989000/1669731989000'
const axios = require('axios');
let config = {
method: 'get',
maxBodyLength: Infinity,
url: 'https://vela-public-server-prod-qxq2l.ondigitalocean.app/pricing/charts/crypto/ETH-USD/5m/1669641989000/1669731989000',
headers: { }
};
axios(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});
import requests
url = "https://vela-public-server-prod-qxq2l.ondigitalocean.app/pricing/charts/crypto/ETH-USD/5m/1669641989000/1669731989000"
payload={}
headers = {}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
get
https://vela-public-server-prod-qxq2l.ondigitalocean.app
/pricing/supported-assets/{chainId}
Get Supported Assets
Shell
Node
Python
curl --location 'https://vela-public-server-prod-qxq2l.ondigitalocean.app/pricing/supported-assets/42161'
const axios = require('axios');
let config = {
method: 'get',
maxBodyLength: Infinity,
url: 'https://vela-public-server-prod-qxq2l.ondigitalocean.app/pricing/supported-assets/42161',
headers: { }
};
axios(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});
import requests
import json
url = "https://app.vela.exchange/api/public"
payload = json.dumps({
"route": "pricing",
"action": "GET_SUPPORTED_ASSETS",
"payload": {
"chainId": "42161"
}
})
headers = {
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
Last modified 2mo ago