Updated V5 InstrumentInfo types
Missing attributes have been added according to the documentation `postOnlyMaxOrderQty` should be removed from `LinearInverseInstrumentInfoV5` as this has been replaced by `maxOrderQty`.
This commit is contained in:
@@ -2,7 +2,9 @@ import {
|
|||||||
CategoryCursorListV5,
|
CategoryCursorListV5,
|
||||||
CategoryV5,
|
CategoryV5,
|
||||||
ContractTypeV5,
|
ContractTypeV5,
|
||||||
|
CopyTradingV5,
|
||||||
InstrumentStatusV5,
|
InstrumentStatusV5,
|
||||||
|
MarginTradingV5,
|
||||||
OptionTypeV5,
|
OptionTypeV5,
|
||||||
OrderSideV5,
|
OrderSideV5,
|
||||||
} from '../v5-shared';
|
} from '../v5-shared';
|
||||||
@@ -61,6 +63,7 @@ export interface LinearInverseInstrumentInfoV5 {
|
|||||||
};
|
};
|
||||||
lotSizeFilter: {
|
lotSizeFilter: {
|
||||||
maxOrderQty: string;
|
maxOrderQty: string;
|
||||||
|
maxMktOrderQty: string;
|
||||||
minOrderQty: string;
|
minOrderQty: string;
|
||||||
qtyStep: string;
|
qtyStep: string;
|
||||||
postOnlyMaxOrderQty?: string;
|
postOnlyMaxOrderQty?: string;
|
||||||
@@ -68,6 +71,9 @@ export interface LinearInverseInstrumentInfoV5 {
|
|||||||
unifiedMarginTrade: boolean;
|
unifiedMarginTrade: boolean;
|
||||||
fundingInterval: number;
|
fundingInterval: number;
|
||||||
settleCoin: string;
|
settleCoin: string;
|
||||||
|
copyTrading: CopyTradingV5;
|
||||||
|
upperFundingRate: string;
|
||||||
|
lowerFundingRate: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface OptionInstrumentInfoV5 {
|
export interface OptionInstrumentInfoV5 {
|
||||||
@@ -98,6 +104,7 @@ export interface SpotInstrumentInfoV5 {
|
|||||||
quoteCoin: string;
|
quoteCoin: string;
|
||||||
innovation: '0' | '1';
|
innovation: '0' | '1';
|
||||||
status: InstrumentStatusV5;
|
status: InstrumentStatusV5;
|
||||||
|
marginTrading: MarginTradingV5;
|
||||||
lotSizeFilter: {
|
lotSizeFilter: {
|
||||||
basePrecision: string;
|
basePrecision: string;
|
||||||
quotePrecision: string;
|
quotePrecision: string;
|
||||||
@@ -109,6 +116,10 @@ export interface SpotInstrumentInfoV5 {
|
|||||||
priceFilter: {
|
priceFilter: {
|
||||||
tickSize: string;
|
tickSize: string;
|
||||||
};
|
};
|
||||||
|
riskParameters: {
|
||||||
|
limitParameter: string;
|
||||||
|
marketParameter: string;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
type InstrumentInfoV5Mapping = {
|
type InstrumentInfoV5Mapping = {
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ export type ContractTypeV5 =
|
|||||||
| 'InversePerpetual'
|
| 'InversePerpetual'
|
||||||
| 'LinearPerpetual'
|
| 'LinearPerpetual'
|
||||||
| 'InverseFutures';
|
| 'InverseFutures';
|
||||||
|
export type CopyTradingV5 = 'none' | 'both' | 'utaOnly' | 'normalOnly';
|
||||||
|
|
||||||
export type InstrumentStatusV5 =
|
export type InstrumentStatusV5 =
|
||||||
| 'PreLaunch'
|
| 'PreLaunch'
|
||||||
@@ -11,6 +12,8 @@ export type InstrumentStatusV5 =
|
|||||||
| 'Delivering'
|
| 'Delivering'
|
||||||
| 'Closed';
|
| 'Closed';
|
||||||
|
|
||||||
|
export type MarginTradingV5 = 'none' | 'both' | 'utaOnly' | 'normalSpotOnly';
|
||||||
|
|
||||||
export type OrderFilterV5 = 'Order' | 'tpslOrder' | 'StopOrder';
|
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';
|
||||||
|
|||||||
Reference in New Issue
Block a user