OKX OAuth Connect
POST
/api/v1/oauth/okx/connect
const url = 'https://api.parasta.io/api/v1/oauth/okx/connect';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.parasta.io/api/v1/oauth/okx/connect \ --header 'Authorization: Bearer <token>'Connect OKX account via API key authentication.
Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”OK
Media type application/json
Example
{ "status": "ok", "data": { "connected": true, "exchange": "OKX", "balances": [ { "token": "BTC", "amount": "0.5" }, { "token": "USDT", "amount": "10000" } ] }}