kucoin-api 1.0.23 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/README.md +3 -3
  2. package/dist/cjs/FuturesClient.d.ts +411 -117
  3. package/dist/cjs/FuturesClient.js +381 -113
  4. package/dist/cjs/FuturesClient.js.map +1 -1
  5. package/dist/cjs/SpotClient.d.ts +906 -338
  6. package/dist/cjs/SpotClient.js +926 -364
  7. package/dist/cjs/SpotClient.js.map +1 -1
  8. package/dist/cjs/types/request/futures.types.d.ts +68 -16
  9. package/dist/cjs/types/request/spot-account.d.ts +1 -1
  10. package/dist/cjs/types/request/spot-funding.d.ts +0 -2
  11. package/dist/cjs/types/request/spot-trading.d.ts +11 -20
  12. package/dist/cjs/types/response/futures.types.d.ts +118 -58
  13. package/dist/cjs/types/response/spot-account.d.ts +76 -28
  14. package/dist/cjs/types/response/spot-funding.d.ts +34 -32
  15. package/dist/cjs/types/response/spot-margin-trading.d.ts +80 -15
  16. package/dist/cjs/types/response/spot-misc.d.ts +1 -1
  17. package/dist/cjs/types/response/spot-trading.d.ts +100 -74
  18. package/dist/mjs/FuturesClient.d.ts +411 -117
  19. package/dist/mjs/FuturesClient.js +381 -113
  20. package/dist/mjs/FuturesClient.js.map +1 -1
  21. package/dist/mjs/SpotClient.d.ts +906 -338
  22. package/dist/mjs/SpotClient.js +926 -364
  23. package/dist/mjs/SpotClient.js.map +1 -1
  24. package/dist/mjs/types/request/futures.types.d.ts +68 -16
  25. package/dist/mjs/types/request/spot-account.d.ts +1 -1
  26. package/dist/mjs/types/request/spot-funding.d.ts +0 -2
  27. package/dist/mjs/types/request/spot-trading.d.ts +11 -20
  28. package/dist/mjs/types/response/futures.types.d.ts +118 -58
  29. package/dist/mjs/types/response/spot-account.d.ts +76 -28
  30. package/dist/mjs/types/response/spot-funding.d.ts +34 -32
  31. package/dist/mjs/types/response/spot-margin-trading.d.ts +80 -15
  32. package/dist/mjs/types/response/spot-misc.d.ts +1 -1
  33. package/dist/mjs/types/response/spot-trading.d.ts +100 -74
  34. package/package.json +1 -1
package/README.md CHANGED
@@ -64,7 +64,7 @@ Check out my related JavaScript/TypeScript/Node.js projects:
64
64
 
65
65
  Most methods accept JS objects. These can be populated using parameters specified by Kucoin's API documentation.
66
66
 
67
- - [Kucoin API Documentation](https://www.kucoin.com/docs/beginners/introduction)
67
+ - [Kucoin API Documentation](https://www.kucoin.com/docs-new/introduction)
68
68
  - Node.js Quick Start Guides
69
69
  - [Spot Node.js Kucoin Quick Start Guide](./examples/kucoin-SPOT-examples-nodejs.md)
70
70
  - [Futures Node.js Kucoin Quick Start Guide](./examples/kucoin-FUTURES-examples-nodejs.md)
@@ -102,7 +102,7 @@ const client = new SpotClient({
102
102
  });
103
103
 
104
104
  try {
105
- const spotBuyResult = await client.submitOrder({
105
+ const spotBuyResult = await client.submitHFOrder({
106
106
  clientOid: client.generateNewOrderID(),
107
107
  side: 'buy',
108
108
  type: 'market',
@@ -111,7 +111,7 @@ try {
111
111
  });
112
112
  console.log('spotBuy ', JSON.stringify(spotBuyResult, null, 2));
113
113
 
114
- const spotSellResult = await client.submitOrder({
114
+ const spotSellResult = await client.submitHFOrder({
115
115
  clientOid: client.generateNewOrderID(),
116
116
  side: 'sell',
117
117
  type: 'market',