Skip to content

Commit 2e70e28

Browse files
authored
Merge pull request #100 from JJ-Cro/update15122025
feat(v2.3.3): add new endpoints for market available inventory and kumining, update SDK documentation and examples
2 parents e594c58 + 6fce178 commit 2e70e28

File tree

11 files changed

+6708
-6539
lines changed

11 files changed

+6708
-6539
lines changed

docs/endpointFunctionList.md

Lines changed: 199 additions & 197 deletions
Large diffs are not rendered by default.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
const { SpotClient } = require('kucoin-api');
2+
3+
// This example shows how to call this kucoin API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "kucoin-api" for kucoin exchange
4+
// This kucoin API SDK is available on npm via "npm install kucoin-api"
5+
// ENDPOINT: api/v2/affiliate/queryKumining
6+
// METHOD: GET
7+
// PUBLIC: NO
8+
9+
const client = new SpotClient({
10+
apiKey: 'apiKeyHere',
11+
apiSecret: 'apiSecretHere',
12+
apiPassphrase: 'apiPassPhraseHere',
13+
});
14+
15+
client.getKumining(params)
16+
.then((response) => {
17+
console.log(response);
18+
})
19+
.catch((error) => {
20+
console.error(error);
21+
});
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
const { SpotClient } = require('kucoin-api');
2+
3+
// This example shows how to call this kucoin API endpoint with either node.js, javascript (js) or typescript (ts) with the npm module "kucoin-api" for kucoin exchange
4+
// This kucoin API SDK is available on npm via "npm install kucoin-api"
5+
// ENDPOINT: api/v3/margin/available-inventory
6+
// METHOD: GET
7+
// PUBLIC: YES
8+
9+
const client = new SpotClient({
10+
apiKey: 'apiKeyHere',
11+
apiSecret: 'apiSecretHere',
12+
apiPassphrase: 'apiPassPhraseHere',
13+
});
14+
15+
client.getMarketAvailableInventory(params)
16+
.then((response) => {
17+
console.log(response);
18+
})
19+
.catch((error) => {
20+
console.error(error);
21+
});

0 commit comments

Comments
 (0)