Comparing version 1.1.7 to 1.2.0
@@ -261,6 +261,6 @@ "use strict"; | ||
getSavingBalance(ccy) { | ||
return this.getPrivate('/api/v5/asset/saving-balance', { ccy }); | ||
return this.getPrivate('/api/v5/finance/savings/balance', { ccy }); | ||
} | ||
savingsPurchaseRedemption(ccy, amt, side, rate) { | ||
return this.postPrivate('/api/v5/asset/purchase_redempt', { | ||
return this.postPrivate('/api/v5/finance/savings/purchase-redempt', { | ||
ccy, | ||
@@ -273,12 +273,15 @@ amt, | ||
setLendingRate(ccy, rate) { | ||
return this.postPrivate('/api/v5/asset/set-lending-rate', { ccy, rate }); | ||
return this.postPrivate('/api/v5/finance/savings/set-lending-rate', { | ||
ccy, | ||
rate, | ||
}); | ||
} | ||
getLendingHistory(params) { | ||
return this.getPrivate('/api/v5/asset/lending-history', params); | ||
return this.getPrivate('/api/v5/finance/savings/lending-history', params); | ||
} | ||
getPublicBorrowInfo(ccy) { | ||
return this.get('/api/v5/asset/lending-rate-summary', { ccy }); | ||
return this.get('/api/v5/finance/savings/lending-rate-summary', { ccy }); | ||
} | ||
getPublicBorrowHistory(params) { | ||
return this.get('/api/v5/asset/lending-rate-history', params); | ||
return this.get('/api/v5/finance/savings/lending-rate-history', params); | ||
} | ||
@@ -285,0 +288,0 @@ /** |
{ | ||
"name": "okx-api", | ||
"version": "1.1.7", | ||
"version": "1.2.0", | ||
"description": "Complete & robust Node.js SDK for OKX's REST APIs and WebSockets, with TypeScript & end-to-end tests", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -50,3 +50,14 @@ # Node.js & Typescript OKX (OKEX) API & WebSocket SDK | ||
- [OKX API Documentation](https://www.okx.com/docs-v5/en/#rest-api). | ||
- [TSDoc Documentation (generated using typedoc via npm module)](https://tsdocs.dev/docs/okx-api) | ||
## Contributions & Thanks | ||
Support my efforts to make algo trading accessible to all - register with my referral links: | ||
- [Bybit](https://www.bybit.com/en-US/register?affiliate_id=9410&language=en-US&group_id=0&group_type=1) | ||
- [Binance](https://www.binance.com/en/register?ref=20983262) | ||
- [OKX](https://www.okx.com/join/18504944) | ||
For more ways to give thanks & support my efforts, visit [Contributions & Thanks](https://github.com/tiagosiebler/awesome-crypto-examples/wiki/Contributions-&-Thanks)! | ||
## Structure | ||
@@ -160,25 +171,4 @@ | ||
## Contributions & Thanks | ||
### Donations | ||
#### tiagosiebler | ||
Support my efforts to make algo trading accessible to all - register with my referral links: | ||
- [Bybit](https://www.bybit.com/en-US/register?affiliate_id=9410&language=en-US&group_id=0&group_type=1) | ||
- [Binance](https://www.binance.com/en/register?ref=20983262) | ||
- [OKX](https://www.okx.com/join/18504944) | ||
Or buy me a coffee using any of these: | ||
- BTC: `1C6GWZL1XW3jrjpPTS863XtZiXL1aTK7Jk` | ||
- ETH (ERC20): `0xd773d8e6a50758e1ada699bb6c4f98bb4abf82da` | ||
### Contributions & Pull Requests | ||
Contributions are encouraged, I will review any incoming pull requests. See the issues tab for todo items. | ||
## Star History | ||
[![Star History Chart](https://api.star-history.com/svg?repos=tiagosiebler/bitget-api,tiagosiebler/bybit-api,tiagosiebler/binance,tiagosiebler/orderbooks,tiagosiebler/okx-api,tiagosiebler/awesome-crypto-examples&type=Date)](https://star-history.com/#tiagosiebler/bybit-api&tiagosiebler/binance&tiagosiebler/orderbooks&tiagosiebler/okx-api&tiagosiebler/bitget-api&tiagosiebler/awesome-crypto-examples&tiagosiebler/ftx-api&Date) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
248255
4668
173