/pos and send a "quote" event to receive live pricing with FX margin calculations.
Connection
Sending a Quote Request
Send a JSON message with the following structure:Message Fields
| Field | Type | Required | Description |
|---|---|---|---|
event | string | Yes | Must be "quote" |
requestId | string | Yes | Unique ID to match this request with the response |
payload.chain | string | Yes | Blockchain network (e.g., "polygon") |
payload.token | string | Yes | "USDC" or "USDT" |
payload.localAmount | string | No | Amount in local currency (provide this or amount) |
payload.localCurrency | string | No | ISO currency code (e.g., "NGN") |
payload.amount | string | No | Amount in cryptocurrency (provide this or localAmount) |
payload.businessId | string | No | Business ID for margin calculation |
Quote Response
Error Response
Example
Node.js

