buyIronCondor

fun buyIronCondor(symbol: String, lowerWing: Pair<Float, Float>, upperWing: Pair<Float, Float>, limitPrice: Float, quantity: Int, expiry: ZonedDateTime = OptionsCalendar.nextMonthly(), clientOrderId: String = randomString()): PreviewRequest

Buy an iron condor

Parameters

symbol

The market symbol for the security being bought

lowerWing

A pair of strike prices for the lower wing of the condor

upperWing

A pair of strike prices for the upper wing of the condor

limitPrice

The highest price at which to buy the iron condors

quantity

The number of iron condors to buy

expiry

The date the iron condor 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