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.
- package/README.md +3 -3
- package/dist/cjs/FuturesClient.d.ts +411 -117
- package/dist/cjs/FuturesClient.js +381 -113
- package/dist/cjs/FuturesClient.js.map +1 -1
- package/dist/cjs/SpotClient.d.ts +906 -338
- package/dist/cjs/SpotClient.js +926 -364
- package/dist/cjs/SpotClient.js.map +1 -1
- package/dist/cjs/types/request/futures.types.d.ts +68 -16
- package/dist/cjs/types/request/spot-account.d.ts +1 -1
- package/dist/cjs/types/request/spot-funding.d.ts +0 -2
- package/dist/cjs/types/request/spot-trading.d.ts +11 -20
- package/dist/cjs/types/response/futures.types.d.ts +118 -58
- package/dist/cjs/types/response/spot-account.d.ts +76 -28
- package/dist/cjs/types/response/spot-funding.d.ts +34 -32
- package/dist/cjs/types/response/spot-margin-trading.d.ts +80 -15
- package/dist/cjs/types/response/spot-misc.d.ts +1 -1
- package/dist/cjs/types/response/spot-trading.d.ts +100 -74
- package/dist/mjs/FuturesClient.d.ts +411 -117
- package/dist/mjs/FuturesClient.js +381 -113
- package/dist/mjs/FuturesClient.js.map +1 -1
- package/dist/mjs/SpotClient.d.ts +906 -338
- package/dist/mjs/SpotClient.js +926 -364
- package/dist/mjs/SpotClient.js.map +1 -1
- package/dist/mjs/types/request/futures.types.d.ts +68 -16
- package/dist/mjs/types/request/spot-account.d.ts +1 -1
- package/dist/mjs/types/request/spot-funding.d.ts +0 -2
- package/dist/mjs/types/request/spot-trading.d.ts +11 -20
- package/dist/mjs/types/response/futures.types.d.ts +118 -58
- package/dist/mjs/types/response/spot-account.d.ts +76 -28
- package/dist/mjs/types/response/spot-funding.d.ts +34 -32
- package/dist/mjs/types/response/spot-margin-trading.d.ts +80 -15
- package/dist/mjs/types/response/spot-misc.d.ts +1 -1
- package/dist/mjs/types/response/spot-trading.d.ts +100 -74
- 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/
|
|
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.
|
|
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.
|
|
114
|
+
const spotSellResult = await client.submitHFOrder({
|
|
115
115
|
clientOid: client.generateNewOrderID(),
|
|
116
116
|
side: 'sell',
|
|
117
117
|
type: 'market',
|