Get Single Trade Pair
curl --request GET \
--url https://api.obiex.finance/v1/trades/pairs/{sourceCode}/{targetCode}import requests
url = "https://api.obiex.finance/v1/trades/pairs/{sourceCode}/{targetCode}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.obiex.finance/v1/trades/pairs/{sourceCode}/{targetCode}', 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://api.obiex.finance/v1/trades/pairs/{sourceCode}/{targetCode}",
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://api.obiex.finance/v1/trades/pairs/{sourceCode}/{targetCode}"
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://api.obiex.finance/v1/trades/pairs/{sourceCode}/{targetCode}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.obiex.finance/v1/trades/pairs/{sourceCode}/{targetCode}")
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{
"message": "Ok",
"data": {
"id": "3bd8ace6-dc63-49a8-b91a-46131dfdf0f2",
"createdAt": "2021-11-22T10:16:51.874Z",
"updatedAt": "2021-11-23T15:15:58.402Z",
"active": true,
"sourceId": "55456608-8c9f-499d-99b4-15ceafef3212",
"targetId": "de3423cb-e81c-464f-8bb4-d9da15a37e8b",
"isSellable": true,
"isBuyable": true,
"isLeverage": false,
"enableP2PTrading": true,
"source": {
"id": "55456608-8c9f-499d-99b4-15ceafef3212",
"createdAt": "2021-11-22T10:16:50.727Z",
"updatedAt": "2024-03-03T08:16:24.743Z",
"active": true,
"name": "Tether",
"code": "USDT",
"exchangeCode": null,
"leverageBaseCurrencyCode": null,
"leverageMultipler": null,
"receivable": true,
"withdrawable": true,
"transferrable": true,
"minimumWithdrawal": 5,
"minimumDeposit": 3,
"maximumDecimalPlaces": 4,
"withdrawalFee": 0,
"receiveFee": 0,
"type": "STABLE",
"leverageType": null,
"receiveFeeType": "PERCENTAGE",
"withdrawalFeeType": "PERCENTAGE",
"maximumWithdrawalFee": 0,
"allowUtilityPayments": true,
"allowUnconfirmedTrading": true,
"allowVirtualCardTransactions": true,
"enableWithdrawalApproval": false
},
"target": {
"id": "de3423cb-e81c-464f-8bb4-d9da15a37e8b",
"createdAt": "2021-11-22T10:16:50.862Z",
"updatedAt": "2024-10-26T13:40:22.599Z",
"active": true,
"name": "Naira",
"code": "NGNX",
"exchangeCode": null,
"leverageBaseCurrencyCode": null,
"leverageMultipler": null,
"receivable": true,
"withdrawable": true,
"transferrable": true,
"minimumWithdrawal": 0,
"minimumDeposit": 0,
"maximumDecimalPlaces": 2,
"withdrawalFee": 50,
"receiveFee": 100,
"type": "FIAT",
"leverageType": null,
"receiveFeeType": "FLAT",
"withdrawalFeeType": "FLAT",
"maximumWithdrawalFee": 0,
"allowUtilityPayments": true,
"allowUnconfirmedTrading": true,
"allowVirtualCardTransactions": false,
"enableWithdrawalApproval": false
}
}
}Trades
Get Single Trade Pair
GET
/
trades
/
pairs
/
{sourceCode}
/
{targetCode}
Get Single Trade Pair
curl --request GET \
--url https://api.obiex.finance/v1/trades/pairs/{sourceCode}/{targetCode}import requests
url = "https://api.obiex.finance/v1/trades/pairs/{sourceCode}/{targetCode}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.obiex.finance/v1/trades/pairs/{sourceCode}/{targetCode}', 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://api.obiex.finance/v1/trades/pairs/{sourceCode}/{targetCode}",
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://api.obiex.finance/v1/trades/pairs/{sourceCode}/{targetCode}"
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://api.obiex.finance/v1/trades/pairs/{sourceCode}/{targetCode}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.obiex.finance/v1/trades/pairs/{sourceCode}/{targetCode}")
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{
"message": "Ok",
"data": {
"id": "3bd8ace6-dc63-49a8-b91a-46131dfdf0f2",
"createdAt": "2021-11-22T10:16:51.874Z",
"updatedAt": "2021-11-23T15:15:58.402Z",
"active": true,
"sourceId": "55456608-8c9f-499d-99b4-15ceafef3212",
"targetId": "de3423cb-e81c-464f-8bb4-d9da15a37e8b",
"isSellable": true,
"isBuyable": true,
"isLeverage": false,
"enableP2PTrading": true,
"source": {
"id": "55456608-8c9f-499d-99b4-15ceafef3212",
"createdAt": "2021-11-22T10:16:50.727Z",
"updatedAt": "2024-03-03T08:16:24.743Z",
"active": true,
"name": "Tether",
"code": "USDT",
"exchangeCode": null,
"leverageBaseCurrencyCode": null,
"leverageMultipler": null,
"receivable": true,
"withdrawable": true,
"transferrable": true,
"minimumWithdrawal": 5,
"minimumDeposit": 3,
"maximumDecimalPlaces": 4,
"withdrawalFee": 0,
"receiveFee": 0,
"type": "STABLE",
"leverageType": null,
"receiveFeeType": "PERCENTAGE",
"withdrawalFeeType": "PERCENTAGE",
"maximumWithdrawalFee": 0,
"allowUtilityPayments": true,
"allowUnconfirmedTrading": true,
"allowVirtualCardTransactions": true,
"enableWithdrawalApproval": false
},
"target": {
"id": "de3423cb-e81c-464f-8bb4-d9da15a37e8b",
"createdAt": "2021-11-22T10:16:50.862Z",
"updatedAt": "2024-10-26T13:40:22.599Z",
"active": true,
"name": "Naira",
"code": "NGNX",
"exchangeCode": null,
"leverageBaseCurrencyCode": null,
"leverageMultipler": null,
"receivable": true,
"withdrawable": true,
"transferrable": true,
"minimumWithdrawal": 0,
"minimumDeposit": 0,
"maximumDecimalPlaces": 2,
"withdrawalFee": 50,
"receiveFee": 100,
"type": "FIAT",
"leverageType": null,
"receiveFeeType": "FLAT",
"withdrawalFeeType": "FLAT",
"maximumWithdrawalFee": 0,
"allowUtilityPayments": true,
"allowUnconfirmedTrading": true,
"allowVirtualCardTransactions": false,
"enableWithdrawalApproval": false
}
}
}Was this page helpful?
⌘I