Merge pull request #330 from Mnjongen/master
Updated V5 `InstrumentInfo` types
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "bybit-api",
|
||||
"version": "3.9.7",
|
||||
"version": "3.9.8",
|
||||
"description": "Complete & robust Node.js SDK for Bybit's REST APIs and WebSockets, with TypeScript & strong end to end tests.",
|
||||
"main": "lib/index.js",
|
||||
"types": "lib/index.d.ts",
|
||||
|
||||
@@ -2,7 +2,9 @@ import {
|
||||
CategoryCursorListV5,
|
||||
CategoryV5,
|
||||
ContractTypeV5,
|
||||
CopyTradingV5,
|
||||
InstrumentStatusV5,
|
||||
MarginTradingV5,
|
||||
OptionTypeV5,
|
||||
OrderSideV5,
|
||||
} from '../v5-shared';
|
||||
@@ -61,13 +63,18 @@ export interface LinearInverseInstrumentInfoV5 {
|
||||
};
|
||||
lotSizeFilter: {
|
||||
maxOrderQty: string;
|
||||
maxMktOrderQty: string;
|
||||
minOrderQty: string;
|
||||
qtyStep: string;
|
||||
postOnlyMaxOrderQty?: string;
|
||||
minNotionalValue?: string;
|
||||
};
|
||||
unifiedMarginTrade: boolean;
|
||||
fundingInterval: number;
|
||||
settleCoin: string;
|
||||
copyTrading: CopyTradingV5;
|
||||
upperFundingRate: string;
|
||||
lowerFundingRate: string;
|
||||
}
|
||||
|
||||
export interface OptionInstrumentInfoV5 {
|
||||
@@ -98,6 +105,7 @@ export interface SpotInstrumentInfoV5 {
|
||||
quoteCoin: string;
|
||||
innovation: '0' | '1';
|
||||
status: InstrumentStatusV5;
|
||||
marginTrading: MarginTradingV5;
|
||||
lotSizeFilter: {
|
||||
basePrecision: string;
|
||||
quotePrecision: string;
|
||||
@@ -109,6 +117,10 @@ export interface SpotInstrumentInfoV5 {
|
||||
priceFilter: {
|
||||
tickSize: string;
|
||||
};
|
||||
riskParameters: {
|
||||
limitParameter: string;
|
||||
marketParameter: string;
|
||||
}
|
||||
}
|
||||
|
||||
type InstrumentInfoV5Mapping = {
|
||||
|
||||
@@ -3,6 +3,7 @@ export type ContractTypeV5 =
|
||||
| 'InversePerpetual'
|
||||
| 'LinearPerpetual'
|
||||
| 'InverseFutures';
|
||||
export type CopyTradingV5 = 'none' | 'both' | 'utaOnly' | 'normalOnly';
|
||||
|
||||
export type InstrumentStatusV5 =
|
||||
| 'PreLaunch'
|
||||
@@ -11,6 +12,8 @@ export type InstrumentStatusV5 =
|
||||
| 'Delivering'
|
||||
| 'Closed';
|
||||
|
||||
export type MarginTradingV5 = 'none' | 'both' | 'utaOnly' | 'normalSpotOnly';
|
||||
|
||||
export type OrderFilterV5 = 'Order' | 'tpslOrder' | 'StopOrder';
|
||||
export type OrderSideV5 = 'Buy' | 'Sell';
|
||||
export type OrderTypeV5 = 'Market' | 'Limit';
|
||||
|
||||
Reference in New Issue
Block a user