tedchou12 / webull

Unofficial APIs for Webull.
MIT License
597 stars 183 forks source link

Option Info #257

Closed alvarozamora closed 2 years ago

alvarozamora commented 3 years ago

Hi, sorry if this is not the correct place for it, but how can I get the information about the exact option position (e.g. strike, expiration). Currently, I only see this:

 'position': '-1',
 'assetType': 'OPTION',
 'cost': '-155.00',
 'costPrice': '1.550',
 'currency': 'USD',
 'lastPrice': '1.575',
 'marketValue': '-157.50',

which doesn't tell me what the strike is or when it expires (or whether it's a put or call).

tedchou12 commented 3 years ago

@alvarozamora First use get_options() to get the option chain, then using the option chain's optionid to place the order with place_order_option().

I believe this should help you, https://www.youtube.com/watch?v=3w3ZNQniSbU&t=846s

shalli2 commented 2 years ago

Hi, sorry if this is not the correct place for it, but how can I get the information about the exact option position (e.g. strike, expiration). Currently, I only see this:

 'position': '-1',
 'assetType': 'OPTION',
 'cost': '-155.00',
 'costPrice': '1.550',
 'currency': 'USD',
 'lastPrice': '1.575',
 'marketValue': '-157.50',

which doesn't tell me what the strike is or when it expires (or whether it's a put or call).

Were you able to get this working?