sellEquityMarket

fun sellEquityMarket(symbol: String, limitPrice: Float, stopPrice: Float, quantity: Int, clientOrderId: String = randomString()): PreviewRequest

Sell shares using the market price.

Parameters

symbol

The market symbol for the security being sold

limitPrice

The lowest price at which to sell if specified in a limit order

stopPrice

The designated boundary price for a stop order

quantity

The number of shares to sell

clientOrderId

A reference ID generated by the developer that is used to ensure that a duplicate order is not being submitted. This reference ID may be any value of 20 or less alphanumeric characters but must be unique within the account. This field does not appear in any API responses.

Sources

jvm source
Link copied to clipboard