buy Put Spread
fun buyPutSpread(symbol: String, limitPrice: Float, buyStrike: Float, sellStrike: Float, quantity: Int, expiry: ZonedDateTime = OptionsCalendar.nextMonthly(), clientOrderId: String = randomString()): PreviewRequest
Content copied to clipboard
Buy a put spread aka put debit spread aka bear put spread
Parameters
symbol
The market symbol for the security being bought
limitPrice
The highest price at which to buy or the lowest price at which to sell if specified in a limit order
buyStrike
The strike to buy a put on
sellStrike
The strike to sell a put on
quantity
The number of spreads to buy
expiry
The date the option will expire
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