xtb-api-unofficial - v0.1.0
    Preparing search index...

    Interface ISize

    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 shares
    const sizeByVolume: ISize = {
    volume: { value: 100, scale: 0 }
    };

    // Buy $1000 worth
    const sizeByAmount: ISize = {
    amount: 1000
    };
    interface ISize {
        amount?: number;
        volume?: IVolume;
    }
    Index

    Properties

    Properties

    amount?: number

    Trade amount in currency

    volume?: IVolume

    Trade volume in shares/lots