Skip to content

Commit da8b374

Browse files
authored
Merge pull request #567 from JJ-Cro/update11082026
feat(v4.7.4): sync V5 changelog since July with Spot-X, inventory, RFQ details, and regional access
2 parents e443910 + 4c1e938 commit da8b374

41 files changed

Lines changed: 13361 additions & 11663 deletions

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: 409 additions & 395 deletions
Large diffs are not rendered by default.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { RestClientV5 } from 'bybit-api';
2+
// or, if require is preferred:
3+
// const { RestClientV5 } = require('bybit-api');
4+
5+
const client = new RestClientV5({
6+
testnet: true,
7+
key: 'apikey',
8+
secret: 'apisecret',
9+
});
10+
11+
client
12+
.getFixedLoanAvailableInventory({
13+
currency: 'USDT',
14+
term: '7',
15+
annualRate: '0.02',
16+
})
17+
.then((response) => {
18+
console.log(response);
19+
})
20+
.catch((error) => {
21+
console.error(error);
22+
});
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import { RestClientV5 } from 'bybit-api';
2+
// or, if require is preferred:
3+
// const { RestClientV5 } = require('bybit-api');
4+
5+
const client = new RestClientV5({
6+
testnet: true,
7+
key: 'apikey',
8+
secret: 'apisecret',
9+
});
10+
11+
client
12+
.getFlexibleLoanAvailableInventory({
13+
currency: 'USDT',
14+
})
15+
.then((response) => {
16+
console.log(response);
17+
})
18+
.catch((error) => {
19+
console.error(error);
20+
});
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import { RestClientV5 } from 'bybit-api';
2+
// or, if require is preferred:
3+
// const { RestClientV5 } = require('bybit-api');
4+
5+
const client = new RestClientV5({
6+
testnet: true,
7+
});
8+
9+
client
10+
.getFullDepthOrderbook({
11+
category: 'spot',
12+
symbol: 'BTCUSDT',
13+
})
14+
.then((response) => {
15+
console.log(response);
16+
})
17+
.catch((error) => {
18+
console.error(error);
19+
});
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
import { RestClientV5 } from 'bybit-api';
2+
// or, if require is preferred:
3+
// const { RestClientV5 } = require('bybit-api');
4+
5+
const client = new RestClientV5({
6+
testnet: true,
7+
key: 'apikey',
8+
secret: 'apisecret',
9+
});
10+
11+
client
12+
.getRFQDetails({
13+
traderType: 'request',
14+
limit: 50,
15+
})
16+
.then((response) => {
17+
console.log(response);
18+
})
19+
.catch((error) => {
20+
console.error(error);
21+
});
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { RestClientV5 } from 'bybit-api';
2+
// or, if require is preferred:
3+
// const { RestClientV5 } = require('bybit-api');
4+
5+
const client = new RestClientV5({
6+
testnet: true,
7+
key: 'apikey',
8+
secret: 'apisecret',
9+
});
10+
11+
client
12+
.getFixedRateAvailableInventory({
13+
currency: 'USDT',
14+
term: '7',
15+
annualRate: '0.02',
16+
})
17+
.then((response) => {
18+
console.log(response);
19+
})
20+
.catch((error) => {
21+
console.error(error);
22+
});
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import { RestClientV5 } from 'bybit-api';
2+
// or, if require is preferred:
3+
// const { RestClientV5 } = require('bybit-api');
4+
5+
const client = new RestClientV5({
6+
testnet: true,
7+
key: 'apikey',
8+
secret: 'apisecret',
9+
});
10+
11+
client
12+
.getFlexibleAvailableInventory({
13+
currency: 'BTC',
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 { RestClientV5 } from 'bybit-api';
2+
// or, if require is preferred:
3+
// const { RestClientV5 } = require('bybit-api');
4+
5+
const client = new RestClientV5({
6+
testnet: true,
7+
key: 'apikey',
8+
secret: 'apisecret',
9+
});
10+
11+
client
12+
.getLaunchpoolCurrentStaking()
13+
.then((response) => {
14+
console.log(response);
15+
})
16+
.catch((error) => {
17+
console.error(error);
18+
});
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import { RestClientV5 } from 'bybit-api';
2+
// or, if require is preferred:
3+
// const { RestClientV5 } = require('bybit-api');
4+
5+
const client = new RestClientV5({
6+
testnet: true,
7+
});
8+
9+
client
10+
.getLaunchpoolProjectList({
11+
status: 1,
12+
limit: 10,
13+
})
14+
.then((response) => {
15+
console.log(response);
16+
})
17+
.catch((error) => {
18+
console.error(error);
19+
});
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import { RestClientV5 } from 'bybit-api';
2+
// or, if require is preferred:
3+
// const { RestClientV5 } = require('bybit-api');
4+
5+
const client = new RestClientV5({
6+
testnet: true,
7+
key: 'apikey',
8+
secret: 'apisecret',
9+
});
10+
11+
client
12+
.getLaunchpoolUserActivityLog({
13+
stakeCoin: 'USDT',
14+
type: 0,
15+
status: 1,
16+
pageSize: 10,
17+
current: 1,
18+
})
19+
.then((response) => {
20+
console.log(response);
21+
})
22+
.catch((error) => {
23+
console.error(error);
24+
});

0 commit comments

Comments
 (0)