Trade size specification.
Can be specified either by volume (shares/lots) or by monetary amount. Use volume for equity trading, amount for currency-based sizing.
// Buy 100 sharesconst sizeByVolume: ISize = { volume: { value: 100, scale: 0 }};// Buy $1000 worthconst sizeByAmount: ISize = { amount: 1000}; Copy
// Buy 100 sharesconst sizeByVolume: ISize = { volume: { value: 100, scale: 0 }};// Buy $1000 worthconst sizeByAmount: ISize = { amount: 1000};
Optional
Trade amount in currency
Trade volume in shares/lots
Trade size specification.
Can be specified either by volume (shares/lots) or by monetary amount. Use volume for equity trading, amount for currency-based sizing.
Example