chore(): run linter, after fixing config
This commit is contained in:
@@ -133,12 +133,12 @@ export interface LinearSetMarginSwitchRequest {
|
||||
|
||||
export interface LinearSetPositionModeRequest {
|
||||
symbol: string;
|
||||
mode: typeof linearPositionModeEnum[keyof typeof linearPositionModeEnum];
|
||||
mode: (typeof linearPositionModeEnum)[keyof typeof linearPositionModeEnum];
|
||||
}
|
||||
|
||||
export interface LinearSetPositionTpSlModeRequest {
|
||||
symbol: string;
|
||||
tp_sl_mode: typeof positionTpSlModeEnum[keyof typeof positionTpSlModeEnum];
|
||||
tp_sl_mode: (typeof positionTpSlModeEnum)[keyof typeof positionTpSlModeEnum];
|
||||
}
|
||||
|
||||
export interface LinearSetAddReduceMarginRequest {
|
||||
|
||||
@@ -11,7 +11,6 @@ export type InstrumentStatusV5 =
|
||||
| 'Settling'
|
||||
| 'Delivering'
|
||||
| 'Closed';
|
||||
|
||||
|
||||
export type MarginTradingV5 = 'none' | 'both' | 'utaOnly' | 'normalSpotOnly';
|
||||
|
||||
@@ -156,7 +155,7 @@ export type PositionIdx = 0 | 1 | 2;
|
||||
|
||||
/**
|
||||
* Position status.
|
||||
*
|
||||
*
|
||||
* - 'Normal'
|
||||
* - 'Liq' in the liquidation progress
|
||||
* - 'Adl' in the auto-deleverage progress
|
||||
@@ -175,7 +174,10 @@ export type OptionTypeV5 = 'Call' | 'Put';
|
||||
export type TradeModeV5 = 0 | 1;
|
||||
|
||||
export type TPSLModeV5 = 'Full' | 'Partial';
|
||||
export type AccountMarginModeV5 = 'ISOLATED_MARGIN' | 'REGULAR_MARGIN' | 'PORTFOLIO_MARGIN';
|
||||
export type AccountMarginModeV5 =
|
||||
| 'ISOLATED_MARGIN'
|
||||
| 'REGULAR_MARGIN'
|
||||
| 'PORTFOLIO_MARGIN';
|
||||
export type UnifiedUpdateStatusV5 = 'FAIL' | 'PROCESS' | 'SUCCESS';
|
||||
|
||||
export type AccountTypeV5 =
|
||||
|
||||
@@ -60,7 +60,11 @@ export interface WSOrderbookV5 {
|
||||
seq: number;
|
||||
}
|
||||
|
||||
export type WSOrderbookEventV5 = WSPublicTopicEventV5<string, 'delta' | 'snapshot', WSOrderbookV5[]>;
|
||||
export type WSOrderbookEventV5 = WSPublicTopicEventV5<
|
||||
string,
|
||||
'delta' | 'snapshot',
|
||||
WSOrderbookV5[]
|
||||
>;
|
||||
|
||||
export interface WSPositionV5 {
|
||||
category: string;
|
||||
@@ -103,7 +107,10 @@ export interface WSPositionV5 {
|
||||
seq: number;
|
||||
}
|
||||
|
||||
export type WSPositionEventV5 = WSPrivateTopicEventV5<'position', WSPositionV5[]>;
|
||||
export type WSPositionEventV5 = WSPrivateTopicEventV5<
|
||||
'position',
|
||||
WSPositionV5[]
|
||||
>;
|
||||
|
||||
export interface WSAccountOrderV5 {
|
||||
category: CategoryV5;
|
||||
@@ -155,7 +162,10 @@ export interface WSAccountOrderV5 {
|
||||
updatedTime: string;
|
||||
}
|
||||
|
||||
export type WSAccountOrderEventV5 = WSPrivateTopicEventV5<'order', WSAccountOrderV5[]>;
|
||||
export type WSAccountOrderEventV5 = WSPrivateTopicEventV5<
|
||||
'order',
|
||||
WSAccountOrderV5[]
|
||||
>;
|
||||
|
||||
export interface WSExecutionV5 {
|
||||
category: CategoryV5;
|
||||
@@ -190,4 +200,7 @@ export interface WSExecutionV5 {
|
||||
marketUnit: string;
|
||||
}
|
||||
|
||||
export type WSExecutionEventV5 = WSPrivateTopicEventV5<'execution', WSExecutionV5[]>;
|
||||
export type WSExecutionEventV5 = WSPrivateTopicEventV5<
|
||||
'execution',
|
||||
WSExecutionV5[]
|
||||
>;
|
||||
|
||||
Reference in New Issue
Block a user