feat(#339): add longshort ratio v5 method
This commit is contained in:
@@ -69,6 +69,7 @@ import {
|
||||
GetInternalDepositRecordParamsV5,
|
||||
GetInternalTransferParamsV5,
|
||||
GetKlineParamsV5,
|
||||
GetLongShortRatioParamsV5,
|
||||
GetMarkPriceKlineParamsV5,
|
||||
GetOpenInterestParamsV5,
|
||||
GetOptionDeliveryPriceParamsV5,
|
||||
@@ -94,6 +95,7 @@ import {
|
||||
InternalTransferRecordV5,
|
||||
LeverageTokenInfoV5,
|
||||
LeveragedTokenMarketResultV5,
|
||||
LongShortRatioV5,
|
||||
MMPModifyParamsV5,
|
||||
MMPStateV5,
|
||||
OHLCKlineV5,
|
||||
@@ -390,6 +392,12 @@ export class RestClientV5 extends BaseRestClient {
|
||||
return this.get('/v5/market/delivery-price', params);
|
||||
}
|
||||
|
||||
getLongShortRatio(
|
||||
params: GetLongShortRatioParamsV5,
|
||||
): Promise<APIResponseV3WithTime<{ list: LongShortRatioV5[] }>> {
|
||||
return this.get('/v5/market/account-ratio', params);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
****** Trade APIs
|
||||
|
||||
@@ -125,3 +125,10 @@ export interface GetDeliveryPriceParamsV5 {
|
||||
limit?: number;
|
||||
cursor?: string;
|
||||
}
|
||||
|
||||
export interface GetLongShortRatioParamsV5 {
|
||||
category: 'linear' | 'inverse';
|
||||
symbol: string;
|
||||
period: OpenInterestIntervalV5;
|
||||
limit?: number;
|
||||
}
|
||||
|
||||
@@ -120,7 +120,7 @@ export interface SpotInstrumentInfoV5 {
|
||||
riskParameters: {
|
||||
limitParameter: string;
|
||||
marketParameter: string;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
type InstrumentInfoV5Mapping = {
|
||||
@@ -290,3 +290,10 @@ export interface DeliveryPriceV5 {
|
||||
deliveryPrice: string;
|
||||
deliveryTime: string;
|
||||
}
|
||||
|
||||
export interface LongShortRatioV5 {
|
||||
symbol: string;
|
||||
buyRatio: string;
|
||||
sellRatio: string;
|
||||
timestamp: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user