feat(): Added all missing examples
This commit is contained in:
23
examples/apidoc/V5/Trade/get-move-position-history.js
Normal file
23
examples/apidoc/V5/Trade/get-move-position-history.js
Normal file
@@ -0,0 +1,23 @@
|
||||
const { RestClientV5 } = require('bybit-api');
|
||||
|
||||
const client = new RestClientV5({
|
||||
testnet: true,
|
||||
key: 'apikey',
|
||||
secret: 'apisecret',
|
||||
});
|
||||
|
||||
client
|
||||
.getMovePositionHistory({
|
||||
category: 'linear',
|
||||
symbol: 'BTCUSDT',
|
||||
startTime: 1670601600000,
|
||||
endTime: 1671206400000,
|
||||
status: 'Filled',
|
||||
limit: '50',
|
||||
})
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
Reference in New Issue
Block a user