cURL
curl --request POST \ --url https://apis.hopnow.io/v1/accounts/{account_id}/fx/quotes \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "from_currency": "<string>", "to_currency": "<string>", "amount": "<string>" } '
{ "id": "<string>", "object": "<string>", "account_id": "<string>", "base_currency": "<string>", "quote_currency": "<string>", "side": "<string>", "base_amount": "<string>", "quote_amount": "<string>", "all_in_rate": "<string>", "spread_bps": 123, "inside_rate": "<string>", "expires_at": "<string>", "executed_at": "<string>", "created": "<string>", "updated": "<string>" }
Request a foreign exchange quote for currency conversion
acc_
quote_
"fx_quote"
BUY
SELL
{ "id": "quote_1234567890abcdef", "object": "fx_quote", "account_id": "acc_1234567890abcdef", "base_currency": "USD", "quote_currency": "EUR", "side": "BUY", "base_amount": "1000.00", "quote_amount": "850.00", "all_in_rate": "0.8500", "spread_bps": 50, "inside_rate": "0.8495", "expires_at": "2024-01-15T10:05:00Z", "executed_at": null, "created": "2024-01-15T10:00:00Z", "updated": "2024-01-15T10:00:00Z" }