Skip to main content
POST
/
trades
/
quote
/
{quoteId}
Accept Quote
curl --request POST \
  --url https://api.obiex.finance/v1/trades/quote/{quoteId} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{}'
import requests

url = "https://api.obiex.finance/v1/trades/quote/{quoteId}"

payload = {}
headers = {
    "x-api-key": "<api-key>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
  method: 'POST',
  headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
  body: JSON.stringify({})
};

fetch('https://api.obiex.finance/v1/trades/quote/{quoteId}', 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/quote/{quoteId}",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_POSTFIELDS => json_encode([
    
  ]),
  CURLOPT_HTTPHEADER => [
    "Content-Type: application/json",
    "x-api-key: <api-key>"
  ],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://api.obiex.finance/v1/trades/quote/{quoteId}"

	payload := strings.NewReader("{}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("x-api-key", "<api-key>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://api.obiex.finance/v1/trades/quote/{quoteId}")
  .header("x-api-key", "<api-key>")
  .header("Content-Type", "application/json")
  .body("{}")
  .asString();
require 'uri'
require 'net/http'

url = URI("https://api.obiex.finance/v1/trades/quote/{quoteId}")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{}"

response = http.request(request)
puts response.read_body
{
  "message": "Ok",
  "data": {
    "id": "024a29e9-ab89-46c5-bac1-64ba292946da",
    "createdAt": "2026-03-27T10:25:59.722Z",
    "updatedAt": "2026-03-27T10:25:59.722Z",
    "active": true,
    "reference": "c1774607154115",
    "rate": 1426,
    "side": "SELL",
    "amount": 10,
    "amountReceived": 14260,
    "sourceDollarRate": 0.99,
    "targetDollarRate": 0.0007,
    "userId": "51xxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
    "pairId": "3bd8ace6-dc63-49a8-b91a-46131dfdf0f2",
    "dollarValue": 9.9,
    "pair": {
      "id": "3bd8ace6-dc63-49a8-b91a-46131dfdf0f2",
      "createdAt": "2021-11-22T10:16:51.874Z",
      "updatedAt": "2026-03-21T16:16:34.609Z",
      "active": true,
      "sourceId": "55456608-8c9f-499d-99b4-15ceafef3212",
      "targetId": "de3423cb-e81c-464f-8bb4-d9da15a37e8b",
      "isSellable": true,
      "isBuyable": true,
      "isLeverage": false,
      "enableP2PTrading": true,
      "isLimitOrderEnabled": 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"
      },
      "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"
      }
    }
  }
}

Authorizations

x-api-key
string
header
required

Path Parameters

quoteId
string
required

Body

application/json

The body is of type object.

Response

200 - application/json

Accept Quote

The response is of type object.