Trade options / configurations for onboard
curl --request GET \
--url https://external.dev.onboardpay.co/exchange/api/orders/trade-optionsimport requests
url = "https://external.dev.onboardpay.co/exchange/api/orders/trade-options"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://external.dev.onboardpay.co/exchange/api/orders/trade-options', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://external.dev.onboardpay.co/exchange/api/orders/trade-options",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://external.dev.onboardpay.co/exchange/api/orders/trade-options"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://external.dev.onboardpay.co/exchange/api/orders/trade-options")
.asString();require 'uri'
require 'net/http'
url = URI("https://external.dev.onboardpay.co/exchange/api/orders/trade-options")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"fiats": [
{
"name": "<string>",
"logo": "<string>",
"isoCode": "<string>",
"symbol": "<string>",
"unicodeSymbol": "<string>",
"transactionLimitsConfig": {
"kyc": {
"dailyTransactionLimit": 123,
"maxSingleTransactionLimit": 123,
"minSingleTransactionLimit": 123,
"maxLifetimeLimit": 123
},
"noKyc": {
"dailyTransactionLimit": 123,
"maxSingleTransactionLimit": 123,
"minSingleTransactionLimit": 123,
"maxLifetimeLimit": 123
}
}
}
],
"networks": [
{
"networkId": "bsc_testnet",
"name": "Binance Smart Chain Network",
"logo": "<string>",
"explorer": "<string>",
"chainId": 1,
"nativeAsset": "BNB",
"availableTokens": [
{
"symbol": "USDC",
"networkId": "<string>",
"decimals": 123,
"isNative": true,
"address": "<string>"
}
]
}
],
"paymentChannels": [
{
"name": "<string>",
"paymentChannelId": "<string>",
"supportedCurrencies": [
{
"country": "<string>",
"currency": "<string>"
}
]
}
],
"transactionLimitsConfig": {
"kyc": {
"dailyTransactionLimit": 123,
"maxSingleTransactionLimit": 123,
"minSingleTransactionLimit": 123,
"maxLifetimeLimit": 123
},
"noKyc": {
"dailyTransactionLimit": 123,
"maxSingleTransactionLimit": 123,
"minSingleTransactionLimit": 123,
"maxLifetimeLimit": 123
}
}
}{
"code": "UNKNOWN_ERROR",
"message": "Request could not be completed due to an error",
"data": {}
}{
"code": "UNKNOWN_ERROR",
"message": "Request could not be completed due to an error",
"data": {}
}{
"code": "UNKNOWN_ERROR",
"message": "Request could not be completed due to an error",
"data": {}
}Trade Options
Trade Options
GET
/
exchange
/
api
/
orders
/
trade-options
Trade options / configurations for onboard
curl --request GET \
--url https://external.dev.onboardpay.co/exchange/api/orders/trade-optionsimport requests
url = "https://external.dev.onboardpay.co/exchange/api/orders/trade-options"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://external.dev.onboardpay.co/exchange/api/orders/trade-options', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://external.dev.onboardpay.co/exchange/api/orders/trade-options",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://external.dev.onboardpay.co/exchange/api/orders/trade-options"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://external.dev.onboardpay.co/exchange/api/orders/trade-options")
.asString();require 'uri'
require 'net/http'
url = URI("https://external.dev.onboardpay.co/exchange/api/orders/trade-options")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"fiats": [
{
"name": "<string>",
"logo": "<string>",
"isoCode": "<string>",
"symbol": "<string>",
"unicodeSymbol": "<string>",
"transactionLimitsConfig": {
"kyc": {
"dailyTransactionLimit": 123,
"maxSingleTransactionLimit": 123,
"minSingleTransactionLimit": 123,
"maxLifetimeLimit": 123
},
"noKyc": {
"dailyTransactionLimit": 123,
"maxSingleTransactionLimit": 123,
"minSingleTransactionLimit": 123,
"maxLifetimeLimit": 123
}
}
}
],
"networks": [
{
"networkId": "bsc_testnet",
"name": "Binance Smart Chain Network",
"logo": "<string>",
"explorer": "<string>",
"chainId": 1,
"nativeAsset": "BNB",
"availableTokens": [
{
"symbol": "USDC",
"networkId": "<string>",
"decimals": 123,
"isNative": true,
"address": "<string>"
}
]
}
],
"paymentChannels": [
{
"name": "<string>",
"paymentChannelId": "<string>",
"supportedCurrencies": [
{
"country": "<string>",
"currency": "<string>"
}
]
}
],
"transactionLimitsConfig": {
"kyc": {
"dailyTransactionLimit": 123,
"maxSingleTransactionLimit": 123,
"minSingleTransactionLimit": 123,
"maxLifetimeLimit": 123
},
"noKyc": {
"dailyTransactionLimit": 123,
"maxSingleTransactionLimit": 123,
"minSingleTransactionLimit": 123,
"maxLifetimeLimit": 123
}
}
}{
"code": "UNKNOWN_ERROR",
"message": "Request could not be completed due to an error",
"data": {}
}{
"code": "UNKNOWN_ERROR",
"message": "Request could not be completed due to an error",
"data": {}
}{
"code": "UNKNOWN_ERROR",
"message": "Request could not be completed due to an error",
"data": {}
}This endpoint retrieves supported fiat currencies, blockchain networks, payment channels, and transaction limits on Onboard. Use it to configure trade parameters based on user preferences.
⌘I