v3.10.23 feat(): updated request params
This commit is contained in:
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "bybit-api",
|
"name": "bybit-api",
|
||||||
"version": "3.10.22",
|
"version": "3.10.23",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "bybit-api",
|
"name": "bybit-api",
|
||||||
"version": "3.10.22",
|
"version": "3.10.23",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "^1.6.6",
|
"axios": "^1.6.6",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "bybit-api",
|
"name": "bybit-api",
|
||||||
"version": "3.10.22",
|
"version": "3.10.23",
|
||||||
"description": "Complete & robust Node.js SDK for Bybit's REST APIs and WebSockets, with TypeScript & strong end to end tests.",
|
"description": "Complete & robust Node.js SDK for Bybit's REST APIs and WebSockets, with TypeScript & strong end to end tests.",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"types": "lib/index.d.ts",
|
"types": "lib/index.d.ts",
|
||||||
|
|||||||
@@ -510,7 +510,7 @@ export class RestClientV5 extends BaseRestClient {
|
|||||||
|
|
||||||
getLongShortRatio(
|
getLongShortRatio(
|
||||||
params: GetLongShortRatioParamsV5,
|
params: GetLongShortRatioParamsV5,
|
||||||
): Promise<APIResponseV3WithTime<{ list: LongShortRatioV5[] }>> {
|
): Promise<APIResponseV3WithTime<CursorListV5<LongShortRatioV5[]>>> {
|
||||||
return this.get('/v5/market/account-ratio', params);
|
return this.get('/v5/market/account-ratio', params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -130,5 +130,8 @@ export interface GetLongShortRatioParamsV5 {
|
|||||||
category: 'linear' | 'inverse';
|
category: 'linear' | 'inverse';
|
||||||
symbol: string;
|
symbol: string;
|
||||||
period: OpenInterestIntervalV5;
|
period: OpenInterestIntervalV5;
|
||||||
|
startTime?: string;
|
||||||
|
endTime?: string;
|
||||||
limit?: number;
|
limit?: number;
|
||||||
|
cursor?: string;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user