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:
Brent de Jong
2024-03-27 18:30:25 +01:00
parent 4c211d5fe2
commit 1314ca33cd
2 changed files with 14 additions and 0 deletions

View File

@@ -2,7 +2,9 @@ import {
CategoryCursorListV5,
CategoryV5,
ContractTypeV5,
CopyTradingV5,
InstrumentStatusV5,
MarginTradingV5,
OptionTypeV5,
OrderSideV5,
} from '../v5-shared';
@@ -61,6 +63,7 @@ export interface LinearInverseInstrumentInfoV5 {
};
lotSizeFilter: {
maxOrderQty: string;
maxMktOrderQty: string;
minOrderQty: string;
qtyStep: string;
postOnlyMaxOrderQty?: string;
@@ -68,6 +71,9 @@ export interface LinearInverseInstrumentInfoV5 {
unifiedMarginTrade: boolean;
fundingInterval: number;
settleCoin: string;
copyTrading: CopyTradingV5;
upperFundingRate: string;
lowerFundingRate: string;
}
export interface OptionInstrumentInfoV5 {
@@ -98,6 +104,7 @@ export interface SpotInstrumentInfoV5 {
quoteCoin: string;
innovation: '0' | '1';
status: InstrumentStatusV5;
marginTrading: MarginTradingV5;
lotSizeFilter: {
basePrecision: string;
quotePrecision: string;
@@ -109,6 +116,10 @@ export interface SpotInstrumentInfoV5 {
priceFilter: {
tickSize: string;
};
riskParameters: {
limitParameter: string;
marketParameter: string;
}
}
type InstrumentInfoV5Mapping = {