cleaned public inverse futures endpoints & expanded tests

This commit is contained in:
tiagosiebler
2022-05-05 21:46:58 +01:00
parent 603a07ec85
commit 784555cf9f
5 changed files with 123 additions and 83 deletions

View File

@@ -16,7 +16,6 @@ import {
SymbolLimitParam,
SymbolParam,
SymbolPeriodLimitParam,
TimeResult,
WalletFundRecordsReq,
WithdrawRecordsReq,
} from './types/shared';
@@ -121,15 +120,21 @@ export class InverseClient extends BaseRestClient {
*
*/
getOpenInterest(params: SymbolPeriodLimitParam): GenericAPIResponse {
getOpenInterest(
params: SymbolPeriodLimitParam
): Promise<APIResponseWithTime<any[]>> {
return this.requestWrapper.get('v2/public/open-interest', params);
}
getLatestBigDeal(params: SymbolLimitParam): GenericAPIResponse {
getLatestBigDeal(
params: SymbolLimitParam
): Promise<APIResponseWithTime<any[]>> {
return this.requestWrapper.get('v2/public/big-deal', params);
}
getLongShortRatio(params: SymbolPeriodLimitParam): GenericAPIResponse {
getLongShortRatio(
params: SymbolPeriodLimitParam
): Promise<APIResponseWithTime<any[]>> {
return this.requestWrapper.get('v2/public/account-ratio', params);
}