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:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "bybit-api",
|
"name": "bybit-api",
|
||||||
"version": "3.7.6",
|
"version": "3.7.7",
|
||||||
"description": "Complete & robust Node.js SDK for Bybit's REST APIs and WebSockets, with TypeScript & strong end to end tests.",
|
"description": "Complete & robust Node.js SDK for Bybit's REST APIs and WebSockets, with TypeScript & strong end to end tests.",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"types": "lib/index.d.ts",
|
"types": "lib/index.d.ts",
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ export interface OrderParamsV5 {
|
|||||||
qty: string;
|
qty: string;
|
||||||
price?: string;
|
price?: string;
|
||||||
triggerDirection?: 1 | 2;
|
triggerDirection?: 1 | 2;
|
||||||
orderFilter?: 'Order' | 'tpslOrder';
|
orderFilter?: OrderFilterV5;
|
||||||
triggerPrice?: string;
|
triggerPrice?: string;
|
||||||
triggerBy?: OrderTriggerByV5;
|
triggerBy?: OrderTriggerByV5;
|
||||||
orderIv?: string;
|
orderIv?: string;
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ export interface ApiKeyInfoV5 {
|
|||||||
vipLevel?: string;
|
vipLevel?: string;
|
||||||
mktMakerLevel?: string;
|
mktMakerLevel?: string;
|
||||||
affiliateID?: number;
|
affiliateID?: number;
|
||||||
|
isMaster: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface UpdateApiKeyResultV5 {
|
export interface UpdateApiKeyResultV5 {
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ export type InstrumentStatusV5 =
|
|||||||
| 'Delivering'
|
| 'Delivering'
|
||||||
| 'Closed';
|
| 'Closed';
|
||||||
|
|
||||||
export type OrderFilterV5 = 'Order' | 'tpslOrder';
|
export type OrderFilterV5 = 'Order' | 'tpslOrder' | 'StopOrder';
|
||||||
export type OrderSideV5 = 'Buy' | 'Sell';
|
export type OrderSideV5 = 'Buy' | 'Sell';
|
||||||
export type OrderTypeV5 = 'Market' | 'Limit';
|
export type OrderTypeV5 = 'Market' | 'Limit';
|
||||||
export type OrderTimeInForceV5 = 'GTC' | 'IOC' | 'FOK' | 'PostOnly';
|
export type OrderTimeInForceV5 = 'GTC' | 'IOC' | 'FOK' | 'PostOnly';
|
||||||
|
|||||||
Reference in New Issue
Block a user