# Requires: npm i -g @infinite_dev/cli && export INFINITE_API_KEY=sk_sandbox_...
# Escape hatch for any endpoint: infinite api <METHOD> <path>
infinite api POST /v1/fx/trades \
--body '<request-json>'Accept a firm FX quote and create a trade.
# Infinite MCP is read-only for this endpoint — use a dedicated MCP tool when one exists, otherwise run the CLI tab.import requests
url = "https://sandbox.api.infinite.dev/v1/fx/trades"
payload = {
"quoteId": "quote_abc123",
"payoutDestination": {
"type": "EXTERNAL_WALLET",
"address": "0xabc123...",
"network": "BASE",
"bankAccountId": "eba_abc123",
"payoutReference": "INV20260417"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
quoteId: 'quote_abc123',
payoutDestination: {
type: 'EXTERNAL_WALLET',
address: '0xabc123...',
network: 'BASE',
bankAccountId: 'eba_abc123',
payoutReference: 'INV20260417'
}
})
};
fetch('https://sandbox.api.infinite.dev/v1/fx/trades', 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://sandbox.api.infinite.dev/v1/fx/trades",
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([
'quoteId' => 'quote_abc123',
'payoutDestination' => [
'type' => 'EXTERNAL_WALLET',
'address' => '0xabc123...',
'network' => 'BASE',
'bankAccountId' => 'eba_abc123',
'payoutReference' => 'INV20260417'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://sandbox.api.infinite.dev/v1/fx/trades"
payload := strings.NewReader("{\n \"quoteId\": \"quote_abc123\",\n \"payoutDestination\": {\n \"type\": \"EXTERNAL_WALLET\",\n \"address\": \"0xabc123...\",\n \"network\": \"BASE\",\n \"bankAccountId\": \"eba_abc123\",\n \"payoutReference\": \"INV20260417\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://sandbox.api.infinite.dev/v1/fx/trades")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"quoteId\": \"quote_abc123\",\n \"payoutDestination\": {\n \"type\": \"EXTERNAL_WALLET\",\n \"address\": \"0xabc123...\",\n \"network\": \"BASE\",\n \"bankAccountId\": \"eba_abc123\",\n \"payoutReference\": \"INV20260417\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.api.infinite.dev/v1/fx/trades")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"quoteId\": \"quote_abc123\",\n \"payoutDestination\": {\n \"type\": \"EXTERNAL_WALLET\",\n \"address\": \"0xabc123...\",\n \"network\": \"BASE\",\n \"bankAccountId\": \"eba_abc123\",\n \"payoutReference\": \"INV20260417\"\n }\n}"
response = http.request(request)
puts response.read_body{
"tradeId": "tfr_abc123",
"status": "AWAITING_DEPOSIT",
"referenceRate": "1.158691536019208779",
"referenceRateAsOf": "2026-09-02T18:30:04.000Z",
"referenceProvider": "XE",
"depositInstructions": {
"address": "0xCustomerInfiniteTxWallet...",
"network": "BASE",
"amount": "10000000",
"expiresAt": "2026-05-26T19:54:00.000Z"
},
"fundingInstructions": {
"reference": "CDX-7K2A9V",
"currency": "EUR",
"amount": "10000",
"supportedRails": [
"SEPA"
],
"bank": {
"name": "Commerzbank AG",
"address": "Mainzer Landstraße 153, 60327 Frankfurt",
"country": "DE"
},
"accounts": [
{
"supportedRails": [
"SEPA"
],
"accountHolderName": "Acme Onramp Ltd",
"accountNumber": "12345678",
"iban": "DE89370400440532013000",
"bic": "COBADEFFXXX",
"sortCode": "12-34-56",
"routingNumber": "021000021"
}
],
"expiresAt": "2026-05-26T19:54:00.000Z",
"swiftRoutingBanks": [
{
"role": "INTERMEDIARY",
"bankName": "Citibank N.A.",
"bic": "CITIUS33XXX",
"abaRoutingNumber": "021000089"
}
]
},
"depositDeadline": "2026-05-26T19:54:00.000Z",
"screeningDeadline": "2026-05-26T19:47:00.000Z"
}Accept a firm FX quote and create a trade
# Requires: npm i -g @infinite_dev/cli && export INFINITE_API_KEY=sk_sandbox_...
# Escape hatch for any endpoint: infinite api <METHOD> <path>
infinite api POST /v1/fx/trades \
--body '<request-json>'Accept a firm FX quote and create a trade.
# Infinite MCP is read-only for this endpoint — use a dedicated MCP tool when one exists, otherwise run the CLI tab.import requests
url = "https://sandbox.api.infinite.dev/v1/fx/trades"
payload = {
"quoteId": "quote_abc123",
"payoutDestination": {
"type": "EXTERNAL_WALLET",
"address": "0xabc123...",
"network": "BASE",
"bankAccountId": "eba_abc123",
"payoutReference": "INV20260417"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
quoteId: 'quote_abc123',
payoutDestination: {
type: 'EXTERNAL_WALLET',
address: '0xabc123...',
network: 'BASE',
bankAccountId: 'eba_abc123',
payoutReference: 'INV20260417'
}
})
};
fetch('https://sandbox.api.infinite.dev/v1/fx/trades', 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://sandbox.api.infinite.dev/v1/fx/trades",
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([
'quoteId' => 'quote_abc123',
'payoutDestination' => [
'type' => 'EXTERNAL_WALLET',
'address' => '0xabc123...',
'network' => 'BASE',
'bankAccountId' => 'eba_abc123',
'payoutReference' => 'INV20260417'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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://sandbox.api.infinite.dev/v1/fx/trades"
payload := strings.NewReader("{\n \"quoteId\": \"quote_abc123\",\n \"payoutDestination\": {\n \"type\": \"EXTERNAL_WALLET\",\n \"address\": \"0xabc123...\",\n \"network\": \"BASE\",\n \"bankAccountId\": \"eba_abc123\",\n \"payoutReference\": \"INV20260417\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://sandbox.api.infinite.dev/v1/fx/trades")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"quoteId\": \"quote_abc123\",\n \"payoutDestination\": {\n \"type\": \"EXTERNAL_WALLET\",\n \"address\": \"0xabc123...\",\n \"network\": \"BASE\",\n \"bankAccountId\": \"eba_abc123\",\n \"payoutReference\": \"INV20260417\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.api.infinite.dev/v1/fx/trades")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"quoteId\": \"quote_abc123\",\n \"payoutDestination\": {\n \"type\": \"EXTERNAL_WALLET\",\n \"address\": \"0xabc123...\",\n \"network\": \"BASE\",\n \"bankAccountId\": \"eba_abc123\",\n \"payoutReference\": \"INV20260417\"\n }\n}"
response = http.request(request)
puts response.read_body{
"tradeId": "tfr_abc123",
"status": "AWAITING_DEPOSIT",
"referenceRate": "1.158691536019208779",
"referenceRateAsOf": "2026-09-02T18:30:04.000Z",
"referenceProvider": "XE",
"depositInstructions": {
"address": "0xCustomerInfiniteTxWallet...",
"network": "BASE",
"amount": "10000000",
"expiresAt": "2026-05-26T19:54:00.000Z"
},
"fundingInstructions": {
"reference": "CDX-7K2A9V",
"currency": "EUR",
"amount": "10000",
"supportedRails": [
"SEPA"
],
"bank": {
"name": "Commerzbank AG",
"address": "Mainzer Landstraße 153, 60327 Frankfurt",
"country": "DE"
},
"accounts": [
{
"supportedRails": [
"SEPA"
],
"accountHolderName": "Acme Onramp Ltd",
"accountNumber": "12345678",
"iban": "DE89370400440532013000",
"bic": "COBADEFFXXX",
"sortCode": "12-34-56",
"routingNumber": "021000021"
}
],
"expiresAt": "2026-05-26T19:54:00.000Z",
"swiftRoutingBanks": [
{
"role": "INTERMEDIARY",
"bankName": "Citibank N.A.",
"bic": "CITIUS33XXX",
"abaRoutingNumber": "021000089"
}
]
},
"depositDeadline": "2026-05-26T19:54:00.000Z",
"screeningDeadline": "2026-05-26T19:47:00.000Z"
}Authorizations
API Key in Bearer format (e.g., Bearer sk_test_...)
Headers
API key
Body
Response
Trade created. Deposit funds within depositDeadline.
"tfr_abc123"
Lifecycle status. PENDING_WALLET_APPROVAL means accept succeeded but the source wallet is still being verified — depositInstructions is omitted until verification clears and the trade transitions to AWAITING_DEPOSIT (delivered via the fx_trade.deposit_instructions_ready webhook).
PENDING_WALLET_APPROVAL, AWAITING_DEPOSIT, PROCESSING, COMPLETED, FAILED, CANCELLED, AUTO_CANCELLED, REFUNDED "AWAITING_DEPOSIT"
Independent reference rate used to price this trade, expressed as destination major units per source major unit. Present for benchmark-priced trades.
"1.158691536019208779"
Timestamp of the independent reference rate used to price this trade (ISO 8601).
"2026-09-02T18:30:04.000Z"
Independent market that published referenceRate. Present when referenceRate is present.
XE "XE"
On-chain deposit instructions for crypto-source trades. Present once the trade reaches AWAITING_DEPOSIT. Omitted while status=PENDING_WALLET_APPROVAL and for fiat-source trades (which return fundingInstructions instead).
Show child attributes
Show child attributes
Bank funding instructions for fiat-source trades. Present once the trade reaches AWAITING_DEPOSIT on fiat-source pairs (USD / EUR / GBP source) — the customer wires from their bank to the account in this object using reference as the wire memo. Mutually exclusive with depositInstructions.
Show child attributes
Show child attributes
Customer-facing deposit deadline (ISO 8601). Present when either depositInstructions or fundingInstructions is present.
"2026-05-26T19:54:00.000Z"
Deadline by which source-wallet verification must complete (ISO 8601). Present only when status=PENDING_WALLET_APPROVAL. If verification has not cleared by this point the trade transitions to FAILED.
"2026-05-26T19:47:00.000Z"
Was this page helpful?