feat(): add/update missing v5 market endpoints. add api doc examples for each endpoint.
This commit is contained in:
18
examples/apidoc/V5/Market/get-historical-volatility.js
Normal file
18
examples/apidoc/V5/Market/get-historical-volatility.js
Normal file
@@ -0,0 +1,18 @@
|
||||
const { RestClientV5 } = require('bybit-api');
|
||||
|
||||
const client = new RestClientV5({
|
||||
testnet: true,
|
||||
});
|
||||
|
||||
client
|
||||
.getHistoricalVolatility({
|
||||
category: 'option',
|
||||
baseCoin: 'ETH',
|
||||
period: 30,
|
||||
})
|
||||
.then((response) => {
|
||||
console.log(response);
|
||||
})
|
||||
.catch((error) => {
|
||||
console.error(error);
|
||||
});
|
||||
Reference in New Issue
Block a user