type fixing

- add StopOrder  to OrderFilterV5
https://bybit-exchange.github.io/docs/v5/order/cancel-order#request-parameters

- add isMaster to api info

- version ++ :)
This commit is contained in:
t0chk
2023-12-10 07:18:09 +03:00
parent abd786eec9
commit 9c12826175
4 changed files with 4 additions and 3 deletions

View File

@@ -19,7 +19,7 @@ export interface OrderParamsV5 {
qty: string;
price?: string;
triggerDirection?: 1 | 2;
orderFilter?: 'Order' | 'tpslOrder';
orderFilter?: OrderFilterV5;
triggerPrice?: string;
triggerBy?: OrderTriggerByV5;
orderIv?: string;

View File

@@ -45,6 +45,7 @@ export interface ApiKeyInfoV5 {
vipLevel?: string;
mktMakerLevel?: string;
affiliateID?: number;
isMaster: boolean;
}
export interface UpdateApiKeyResultV5 {

View File

@@ -11,7 +11,7 @@ export type InstrumentStatusV5 =
| 'Delivering'
| 'Closed';
export type OrderFilterV5 = 'Order' | 'tpslOrder';
export type OrderFilterV5 = 'Order' | 'tpslOrder' | 'StopOrder';
export type OrderSideV5 = 'Buy' | 'Sell';
export type OrderTypeV5 = 'Market' | 'Limit';
export type OrderTimeInForceV5 = 'GTC' | 'IOC' | 'FOK' | 'PostOnly';