chore(): run linter fixes
This commit is contained in:
@@ -1,111 +1,111 @@
|
||||
import {
|
||||
APIResponse,
|
||||
MarginType,
|
||||
BorrowLoanRequestV2,
|
||||
CloseFuturesFollowerPositionsRequestV2,
|
||||
CopyTradingProductTypeV2,
|
||||
FuturesAccountBillRequestV2,
|
||||
FuturesBatchCancelOrderRequestV2,
|
||||
FuturesBatchOrderRequestV2,
|
||||
FuturesCancelAllOrdersRequestV2,
|
||||
FuturesCancelOrderRequestV2,
|
||||
FuturesCancelPlanOrderRequestV2,
|
||||
FuturesCandlesRequestV2,
|
||||
SpotCandlesRequestV2,
|
||||
SpotAccountBill,
|
||||
SpotHistoricCandlesRequestV2,
|
||||
SpotHistoricTradesRequestV2,
|
||||
SpotOrderRequestV2,
|
||||
SpotCancelandSubmitOrderRequestV2,
|
||||
SpotCancelOrderRequestV2,
|
||||
SpotBatchOrderRequestV2,
|
||||
SpotBatchCancelOrderRequestV2,
|
||||
GetSpotOrderInfoRequestV2,
|
||||
GetSpotOpenOrdersRequestV2,
|
||||
GetSpotHistoryOrdersRequestV2,
|
||||
GetSpotFillsRequestV2,
|
||||
SpotPlanOrderRequestV2,
|
||||
SpotModifyPlanOrderRequestV2,
|
||||
GetSpotCurrentPlanOrdersRequestV2,
|
||||
GetSpotHistoryPlanOrdersRequestV2,
|
||||
GetSpotAccountBillsRequestV2,
|
||||
SpotTransferRequestV2,
|
||||
SpotAccountTypeV2,
|
||||
SpotSubAccountTransferRequestV2,
|
||||
SpotWithdrawalRequestV2,
|
||||
SpotMainSubTransferRecordRequestV2,
|
||||
GetSpotTransferRecordRequestV2,
|
||||
GetSpotSubAccountDepositRecordRequestV2,
|
||||
GetSpotWithdrawalRecordRequestV2,
|
||||
GetSpotDepositRecordRequestV2,
|
||||
FuturesFlashClosePositionsRequestV2,
|
||||
FuturesGetHistoricalFillsRequestV2,
|
||||
FuturesGetHistoryOrdersRequestV2,
|
||||
FuturesGetHistoryPlanOrdersRequestV2,
|
||||
FuturesGetOpenOrdersRequestV2,
|
||||
FuturesGetOrderFillsRequestV2,
|
||||
FuturesGetOrderRequestV2,
|
||||
FuturesGetPlanOrdersRequestV2,
|
||||
FuturesHistoricalPositionsRequestV2,
|
||||
FuturesHistoricTradesRequestV2,
|
||||
FuturesInterestHistoryRequestV2,
|
||||
FuturesMergeDepthRequestV2,
|
||||
FuturesModifyOrderRequestV2,
|
||||
FuturesModifyPlanOrderRequestV2,
|
||||
FuturesModifyTPSLOrderRequestV2,
|
||||
FuturesOpenCountRequestV2,
|
||||
FuturesPlaceOrderRequestV2,
|
||||
FuturesPlanOrderRequestV2,
|
||||
FuturesProductTypeV2,
|
||||
FuturesRecentTradesRequestV2,
|
||||
FuturesHistoricTradesRequestV2,
|
||||
FuturesSingleAccountRequestV2,
|
||||
FuturesInterestHistoryRequestV2,
|
||||
FuturesOpenCountRequestV2,
|
||||
FuturesReversalOrderRequestV2,
|
||||
FuturesSetAutoMarginRequestV2,
|
||||
FuturesSetLeverageRequestV2,
|
||||
FuturesSetPositionMarginRequestV2,
|
||||
FuturesSetMarginModeRequestV2,
|
||||
FuturesHistoricalPositionsRequestV2,
|
||||
FuturesPlaceOrderRequestV2,
|
||||
FuturesReversalOrderRequestV2,
|
||||
FuturesBatchOrderRequestV2,
|
||||
FuturesModifyOrderRequestV2,
|
||||
FuturesCancelOrderRequestV2,
|
||||
FuturesBatchCancelOrderRequestV2,
|
||||
FuturesFlashClosePositionsRequestV2,
|
||||
FuturesGetOrderRequestV2,
|
||||
FuturesGetOrderFillsRequestV2,
|
||||
FuturesGetHistoricalFillsRequestV2,
|
||||
FuturesGetOpenOrdersRequestV2,
|
||||
FuturesGetHistoryOrdersRequestV2,
|
||||
FuturesCancelAllOrdersRequestV2,
|
||||
FuturesSetPositionMarginRequestV2,
|
||||
FuturesSingleAccountRequestV2,
|
||||
FuturesTPSLOrderRequestV2,
|
||||
FuturesPlanOrderRequestV2,
|
||||
FuturesModifyTPSLOrderRequestV2,
|
||||
FuturesModifyPlanOrderRequestV2,
|
||||
FuturesGetPlanOrdersRequestV2,
|
||||
FuturesCancelPlanOrderRequestV2,
|
||||
FuturesGetHistoryPlanOrdersRequestV2,
|
||||
GetBorrowHistoryRequestV2,
|
||||
GetRepayHistoryRequestV2,
|
||||
GetInterestHistoryRequestV2,
|
||||
GetLiquidationHistoryRequestV2,
|
||||
GetFinancialHistoryRequestV2,
|
||||
MarginPlaceOrderRequestV2,
|
||||
MarginBatchOrdersRequestV2,
|
||||
GetMarginCurrentOrdersRequestV2,
|
||||
GetHistoryOrdersRequestV2,
|
||||
GetMarginOrderFillsRequestV2,
|
||||
GetMarginLiquidationOrdersRequestV2,
|
||||
GetFuturesTraderCurrentOrdersRequestV2,
|
||||
GetFuturesTraderHistoryOrdersRequestV2,
|
||||
ModifyFuturesTraderOrderTPSLRequestV2,
|
||||
GetFuturesTraderProfitShareDetailRequestV2,
|
||||
CopyTradingProductTypeV2,
|
||||
FuturesTraderSymbolSettingRequestV2,
|
||||
GetFuturesTraderFollowersRequestV2,
|
||||
GetFollowerFuturesCurrentTrackingOrdersRequestV2,
|
||||
GetFollowerFuturesHistoryTrackingOrdersRequestV2,
|
||||
UpdateFuturesFollowerTPSLRequestV2,
|
||||
UpdateFuturesFollowerSettingsRequestV2,
|
||||
GetFuturesFollowerTradersRequestV2,
|
||||
CloseFuturesFollowerPositionsRequestV2,
|
||||
GetSpotTraderHistoryProfitRequestV2,
|
||||
GetSpotTraderHistoryOrdersRequestV2,
|
||||
GetSpotTraderCurrentOrdersRequestV2,
|
||||
GetSpotTraderFollowersRequestV2,
|
||||
SpotFollowerCopyTradeSettingV2,
|
||||
GetSpotFollowerHistoryOrdersRequestV2,
|
||||
GetSpotFollowerOpenOrdersRequestV2,
|
||||
GetBorrowHistoryRequestV2,
|
||||
GetEarnSavingsAssetsRequestV2,
|
||||
GetEarnSavingsRecordsRequestV2,
|
||||
RedeemSavingsRequestV2,
|
||||
GetFinancialHistoryRequestV2,
|
||||
GetFollowerFuturesCurrentTrackingOrdersRequestV2,
|
||||
GetFollowerFuturesHistoryTrackingOrdersRequestV2,
|
||||
GetFuturesFollowerTradersRequestV2,
|
||||
GetFuturesTraderCurrentOrdersRequestV2,
|
||||
GetFuturesTraderFollowersRequestV2,
|
||||
GetFuturesTraderHistoryOrdersRequestV2,
|
||||
GetFuturesTraderProfitShareDetailRequestV2,
|
||||
GetHistoryOrdersRequestV2,
|
||||
GetInterestHistoryRequestV2,
|
||||
GetLiquidationHistoryRequestV2,
|
||||
GetLiquidationRecordsRequestV2,
|
||||
GetLoanEstInterestAndBorrowableRequestV2,
|
||||
GetLoanHistoryRequestV2,
|
||||
GetLoanPledgeRateHistoryRequestV2,
|
||||
GetLoanRepayHistoryRequestV2,
|
||||
GetMarginCurrentOrdersRequestV2,
|
||||
GetMarginLiquidationOrdersRequestV2,
|
||||
GetMarginOrderFillsRequestV2,
|
||||
GetRepayHistoryRequestV2,
|
||||
GetSharkfinAssetsRequestV2,
|
||||
GetSharkfinRecordsRequestV2,
|
||||
GetLoanEstInterestAndBorrowableRequestV2,
|
||||
BorrowLoanRequestV2,
|
||||
RepayLoanRequestV2,
|
||||
GetLoanRepayHistoryRequestV2,
|
||||
GetSpotAccountBillsRequestV2,
|
||||
GetSpotCurrentPlanOrdersRequestV2,
|
||||
GetSpotDepositRecordRequestV2,
|
||||
GetSpotFillsRequestV2,
|
||||
GetSpotFollowerHistoryOrdersRequestV2,
|
||||
GetSpotFollowerOpenOrdersRequestV2,
|
||||
GetSpotHistoryOrdersRequestV2,
|
||||
GetSpotHistoryPlanOrdersRequestV2,
|
||||
GetSpotOpenOrdersRequestV2,
|
||||
GetSpotOrderInfoRequestV2,
|
||||
GetSpotSubAccountDepositRecordRequestV2,
|
||||
GetSpotTraderCurrentOrdersRequestV2,
|
||||
GetSpotTraderFollowersRequestV2,
|
||||
GetSpotTraderHistoryOrdersRequestV2,
|
||||
GetSpotTraderHistoryProfitRequestV2,
|
||||
GetSpotTransferRecordRequestV2,
|
||||
GetSpotWithdrawalRecordRequestV2,
|
||||
MarginBatchOrdersRequestV2,
|
||||
MarginPlaceOrderRequestV2,
|
||||
MarginType,
|
||||
ModifyFuturesTraderOrderTPSLRequestV2,
|
||||
ModifyLoanPledgeRateRequestV2,
|
||||
GetLoanPledgeRateHistoryRequestV2,
|
||||
GetLoanHistoryRequestV2,
|
||||
GetLiquidationRecordsRequestV2,
|
||||
RedeemSavingsRequestV2,
|
||||
RepayLoanRequestV2,
|
||||
SpotAccountBill,
|
||||
SpotAccountTypeV2,
|
||||
SpotBatchCancelOrderRequestV2,
|
||||
SpotBatchOrderRequestV2,
|
||||
SpotCancelandSubmitOrderRequestV2,
|
||||
SpotCancelOrderRequestV2,
|
||||
SpotCandlesRequestV2,
|
||||
SpotFollowerCopyTradeSettingV2,
|
||||
SpotHistoricCandlesRequestV2,
|
||||
SpotHistoricTradesRequestV2,
|
||||
SpotMainSubTransferRecordRequestV2,
|
||||
SpotModifyPlanOrderRequestV2,
|
||||
SpotOrderRequestV2,
|
||||
SpotPlanOrderRequestV2,
|
||||
SpotSubAccountTransferRequestV2,
|
||||
SpotTransferRequestV2,
|
||||
SpotWithdrawalRequestV2,
|
||||
UpdateFuturesFollowerSettingsRequestV2,
|
||||
UpdateFuturesFollowerTPSLRequestV2,
|
||||
} from './types';
|
||||
import {
|
||||
CreateSubAccountApiKeyRequestV2,
|
||||
@@ -122,6 +122,7 @@ import {
|
||||
CreateVirtualSubApiKeyRequestV2,
|
||||
CreateVirtualSubRequestV2,
|
||||
GetAnnouncementsRequestV2,
|
||||
GetConvertBGBHistoryRequestV2,
|
||||
GetConvertHistoryRequestV2,
|
||||
GetFuturesTransactionsRequestV2,
|
||||
GetMarginTransactionsRequestV2,
|
||||
@@ -131,11 +132,10 @@ import {
|
||||
GetP2PTransactionsRequestV2,
|
||||
GetSpotTransactionsRequestV2,
|
||||
GetTradeRateRequestV2,
|
||||
ModifyVirtualSubRequestV2,
|
||||
ModifyVirtualSubApiKeyRequestV2,
|
||||
GetConvertBGBHistoryRequestV2,
|
||||
ModifyVirtualSubRequestV2,
|
||||
} from './types/request/v2/common';
|
||||
import { REST_CLIENT_TYPE_ENUM, assertMarginType } from './util';
|
||||
import { assertMarginType, REST_CLIENT_TYPE_ENUM } from './util';
|
||||
import BaseRestClient from './util/BaseRestClient';
|
||||
|
||||
/**
|
||||
@@ -188,7 +188,7 @@ export class RestClientV2 extends BaseRestClient {
|
||||
console.log(result);
|
||||
|
||||
console.log(
|
||||
`Your approximate latency to exchange server:
|
||||
`Your approximate latency to exchange server:
|
||||
One way: ${estimatedOneWayLatency}ms.
|
||||
Round trip: ${roundTripTime}ms.
|
||||
`,
|
||||
|
||||
Reference in New Issue
Block a user