Skip to main content
The OKX integration allows a developer to enable an OKX user to deposit funds from their OKX Pay balance to a destination wallet address.
Only USDC on SOLANA is supported in milestone-1.

OKX Quote creation

When rebalance_fee is false, the settled amount equals order_amount minus total_fee (gas fee + developer fee + payment fee + conversion fee + withdrawal fee).

OKX Order creation

If quote_id is provided then order_amount and the fin object cannot be provided. If quote_id is not provided then order_amount and the fin object are mandatory. Providing both results in a 422 error.
order_info.currency and order_info.rail must match destination_details.currency and destination_details.rail. This is a Fin API convention — the customer is not required to hold the order_info.currency in their OKX account.

Response Differences for OKX

The provider_response object contains: