You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add new API endpoints and examples for currency conversion and max buy/sell amount
- Added `getConvertCurrencyPair` and `getMaxBuySellAmount` endpoints to the documentation.
- Created example scripts for calling the new endpoints using the OKX API client.
Copy file name to clipboardExpand all lines: docs/endpointFunctionList.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,6 +64,7 @@ This table includes all endpoints from the official Exchange API docs and corres
64
64
|[setSettleCurrency()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L528)|:closed_lock_with_key:| POST |`/api/v5/account/set-settle-currency`|
65
65
|[setFeeType()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L534)|:closed_lock_with_key:| POST |`/api/v5/account/set-fee-type`|
66
66
|[setLeverage()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L538)|:closed_lock_with_key:| POST |`/api/v5/account/set-leverage`|
67
+
|[getMaxBuySellAmount()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L543)|:closed_lock_with_key:| GET |`/api/v5/account/max-size`|
67
68
|[getMaxAvailableTradableAmount()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L556)|:closed_lock_with_key:| GET |`/api/v5/account/max-avail-size`|
68
69
|[changePositionMargin()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L566)|:closed_lock_with_key:| POST |`/api/v5/account/position/margin-balance`|
69
70
|[getLeverage()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L572)|:closed_lock_with_key:| GET |`/api/v5/account/leverage-info`|
@@ -345,6 +346,7 @@ This table includes all endpoints from the official Exchange API docs and corres
345
346
|[applyForMonthlyStatement()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2569)|:closed_lock_with_key:| POST |`/api/v5/asset/monthly-statement`|
346
347
|[getMonthlyStatement()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2573)|:closed_lock_with_key:| GET |`/api/v5/asset/monthly-statement`|
347
348
|[getConvertCurrencies()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2577)|:closed_lock_with_key:| GET |`/api/v5/asset/convert/currencies`|
349
+
|[getConvertCurrencyPair()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2581)|:closed_lock_with_key:| GET |`/api/v5/asset/convert/currency-pair`|
348
350
|[estimateConvertQuote()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2590)|:closed_lock_with_key:| POST |`/api/v5/asset/convert/estimate-quote`|
349
351
|[convertTrade()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2594)|:closed_lock_with_key:| POST |`/api/v5/asset/convert/trade`|
350
352
|[getConvertHistory()](https://github.com/tiagosiebler/okx-api/blob/master/src/rest-client.ts#L2598)|:closed_lock_with_key:| GET |`/api/v5/asset/convert/history`|
// This example shows how to call this OKX API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "okx-api" for OKX exchange
6
+
// This OKX API SDK is available on npm via "npm install okx-api"
// This example shows how to call this OKX API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "okx-api" for OKX exchange
6
+
// This OKX API SDK is available on npm via "npm install okx-api"
0 commit comments