Skip to content
Fee Estimates

Estimate Multi-Leg Option Trading Fees

On the multi-leg option order page, after the price or combination quantity changes, estimates the commission, third-party fees, and platform fee of the whole combination order from each leg's security, price, quantity, and side, to show the estimated fees. The response has the same structure as Estimate Trading Fees. Leg quantities are in shares: for an option leg, the combination quantity multiplied by lot_size returned by Get Multi-Leg Option Order Configuration; for a stock leg, the combination quantity multiplied by the leg's ratio_quantity. Do not call this endpoint when the price or quantity is 0.

When you call this endpoint through WhaleCore requestService(), set requiresTradeToken to true.

POSThttps://api.lbkrs.com/v1/portfolio/current/multileg/estimatedcost

Request body application/json

multi_leg_estimatedarray<object>required

Fee estimation parameters of each leg

Child attributes
counter_idstringrequired

Security ID of the leg

currencystringrequired

Trading (settlement) currency

pricestringrequired

Price of the leg

qtystringrequired

Quantity of the leg in shares

order_tagintegerrequired

Order tag. Use tag returned by Get Multi-Leg Option Order Configuration:

  • 1 - Regular order
  • 2 - Long-term order
  • 3 - Grey market order
Values
1
2
3
dirintegerrequired

Side of the leg:

  • 0 - Buy
  • 1 - Sell
Values
0
1

Responses

HTTP 200The request succeeded. The response body contains the result of the “Estimate Multi-Leg Option Trading Fees” operation.
Standard response envelopecodemessagedata
dataobjectdata structure
commissionstring

Estimated commission

thirdstring

Estimated third-party fees

platformstring

Estimated platform fee

Whale Docs