Skip to content

Commit 7dfaa1f

Browse files
authored
Merge pull request #170 from JJ-Cro/update17092026
feat(v3.2.4): add CFD, grid, Reality market, convert, and strategy sub-order endpoints
2 parents 0ee4b02 + e044500 commit 7dfaa1f

79 files changed

Lines changed: 12855 additions & 8980 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎docs/endpointFunctionList.md‎

Lines changed: 265 additions & 214 deletions
Large diffs are not rendered by default.

‎examples/apidoc/RestClientV3/Account/get-account-fee-rate.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ client
1212
.getFeeRate({
1313
category: 'SPOT',
1414
symbol: 'BTCUSDT',
15+
rpiFlag: 'no',
1516
})
1617
.then((response) => {
1718
console.log(response);
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { RestClientV3 } from 'bitget-api';
2+
// or, if require is preferred:
3+
// const { RestClientV3 } = require('bitget-api');
4+
5+
const client = new RestClientV3({
6+
apiKey: 'insert_api_key_here',
7+
apiSecret: 'insert_api_secret_here',
8+
apiPass: 'insert_api_pass_here',
9+
});
10+
11+
client
12+
.getEligibleDiscountRate()
13+
.then((response) => {
14+
console.log(response);
15+
})
16+
.catch((error) => {
17+
console.error(error);
18+
});
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import { RestClientV3 } from 'bitget-api';
2+
// or, if require is preferred:
3+
// const { RestClientV3 } = require('bitget-api');
4+
5+
const client = new RestClientV3({
6+
apiKey: 'insert_api_key_here',
7+
apiSecret: 'insert_api_secret_here',
8+
apiPass: 'insert_api_pass_here',
9+
});
10+
11+
client
12+
.getFundingFinancialRecords({
13+
coin: 'BTC',
14+
})
15+
.then((response) => {
16+
console.log(response);
17+
})
18+
.catch((error) => {
19+
console.error(error);
20+
});

‎examples/apidoc/RestClientV3/Account/get-max-open-available.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ client
1414
symbol: 'BTCUSDT',
1515
orderType: 'market',
1616
side: 'sell',
17+
autoBorrow: 'no',
1718
})
1819
.then((response) => {
1920
console.log(response);
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { RestClientV3 } from 'bitget-api';
2+
// or, if require is preferred:
3+
// const { RestClientV3 } = require('bitget-api');
4+
5+
const client = new RestClientV3({
6+
apiKey: 'insert_api_key_here',
7+
apiSecret: 'insert_api_secret_here',
8+
apiPass: 'insert_api_pass_here',
9+
});
10+
11+
client
12+
.getSmallAssetsHistory()
13+
.then((response) => {
14+
console.log(response);
15+
})
16+
.catch((error) => {
17+
console.error(error);
18+
});
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { RestClientV3 } from 'bitget-api';
2+
// or, if require is preferred:
3+
// const { RestClientV3 } = require('bitget-api');
4+
5+
const client = new RestClientV3({
6+
apiKey: 'insert_api_key_here',
7+
apiSecret: 'insert_api_secret_here',
8+
apiPass: 'insert_api_pass_here',
9+
});
10+
11+
client
12+
.getSmallAssets()
13+
.then((response) => {
14+
console.log(response);
15+
})
16+
.catch((error) => {
17+
console.error(error);
18+
});
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import { RestClientV3 } from 'bitget-api';
2+
// or, if require is preferred:
3+
// const { RestClientV3 } = require('bitget-api');
4+
5+
const client = new RestClientV3({
6+
apiKey: 'insert_api_key_here',
7+
apiSecret: 'insert_api_secret_here',
8+
apiPass: 'insert_api_pass_here',
9+
});
10+
11+
client
12+
.tradeSmallAssets({
13+
fromCoinList: ['DOGE'],
14+
})
15+
.then((response) => {
16+
console.log(response);
17+
})
18+
.catch((error) => {
19+
console.error(error);
20+
});
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { RestClientV3 } from 'bitget-api';
2+
// or, if require is preferred:
3+
// const { RestClientV3 } = require('bitget-api');
4+
5+
const client = new RestClientV3({
6+
apiKey: 'insert_api_key_here',
7+
apiSecret: 'insert_api_secret_here',
8+
apiPass: 'insert_api_pass_here',
9+
});
10+
11+
client
12+
.getCfdFinancialRecords()
13+
.then((response) => {
14+
console.log(response);
15+
})
16+
.catch((error) => {
17+
console.error(error);
18+
});
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { RestClientV3 } from 'bitget-api';
2+
// or, if require is preferred:
3+
// const { RestClientV3 } = require('bitget-api');
4+
5+
const client = new RestClientV3({
6+
apiKey: 'insert_api_key_here',
7+
apiSecret: 'insert_api_secret_here',
8+
apiPass: 'insert_api_pass_here',
9+
});
10+
11+
client
12+
.getCfdFundDetail()
13+
.then((response) => {
14+
console.log(response);
15+
})
16+
.catch((error) => {
17+
console.error(error);
18+
});

0 commit comments

Comments
 (0)