Instrument

fun Instrument(product: Product?, symbolDescription: String?, orderAction: OrderActionType?, quantityType: QuantityType?, quantity: Float?, cancelQuantity: Float?, orderedQuantity: Float?, filledQuantity: Float?, averageExecutionPrice: Float?, estimatedCommission: Float?, estimatedFees: Float?, bid: Float?, ask: Float?, lastprice: Float?, currency: String?, lots: LotsResponse?, mfQuantity: MutualFundQuantity?, osiKey: String?, mfTransaction: String?, reserveOrder: Boolean?, reserveQuantity: Float?)

Parameters

product

The product details for the security

symbolDescription

The text description of the security being bought or sold

orderAction

BUY, SELL, BUY_TO_COVER, SELL_SHORT, BUY_OPEN, BUY_CLOSE, SELL_OPEN, SELL_CLOSE, EXCHANGE

quantityType

QUANTITY, DOLLAR, ALL_I_OWN

quantity

The number of shares to buy or sell

cancelQuantity

The number of shares to cancel ordering

orderedQuantity

The number of shares ordered

filledQuantity

The number of shares filled

averageExecutionPrice

The average execution price

estimatedCommission

The cost billed to the user to perform the requested action

estimatedFees

The cost or proceeds, including broker commission, resulting from the requested action

bid

The bid price

ask

The ask price

lastprice

The last price

currency

USD, EUR, GBP, HKD, JPY, CAD

lots

The object for the position lot

mfQuantity

The object for the mutual fund quantity

osiKey

The Options Symbology Initiative (OSI) key containing the option root symbol, expiration date, call/put indicator, and strike price

mfTransaction

BUY, SELL

reserveOrder

If TRUE, this is a reserve order meaning that only a limited number of shares will be publicly displayed instead of the entire order; this is done to avoid influencing other traders

reserveQuantity

The number of shares to be publicly displayed if this is a reserve order

Sources

jvm source
Link copied to clipboard