Re: How can I pull my account value in as an object to help calculate my contract quantity size?
Well, that's probably a question for a Python support forum since it is not related to the TWS API.
Alternatively, you could check the sample Python code that comes with the IB API. Maybe there is
By
J¨¹rgen Reinold
·
#47714
·
|
Re: How can I pull my account value in as an object to help calculate my contract quantity size?
Thanks.? I did read the account summary portion.? I only see where it shows to print the summary returned messages.? I am confused on how to store it as an object.
By
Jordan <jordan.howell2@...>
·
#47713
·
|
Re: How can I pull my account value in as an object to help calculate my contract quantity size?
Why don't you re-read the Account & Portfolio Data ( https://interactivebrokers.github.io/tws-api/account_portfolio.html ) section of the API documentation? That tells you about the account related
By
J¨¹rgen Reinold
·
#47712
·
|
Re: Limitations on data requests. Requesting 120 options in option chain.
There is a hotkeys Ctrl Alt =
to see market data lines, as noted here
https://interactivebrokers.github.io/tws-api/message_codes.html#error_codes
It works both in TWS and in IB Gateway.
By
Mikhail Ershov
·
#47711
·
|
How can I pull my account value in as an object to help calculate my contract quantity size?
Using python, how can I pull in my account size as a value to help calc the quantity of my contract size?? ?For instance, if I have a $50K account and I want to only risk 5% on any trade, I would
By
Jordan <jordan.howell2@...>
·
#47710
·
|
Re: Limitations on data requests. Requesting 120 options in option chain.
Did you find this page, which explains the limitations at the bottom of the page:? https://interactivebrokers.github.io/tws-api/market_data.html
Read the section titled "Market Data Lines"
By
J G
·
#47709
·
|
Re: Historical options pricing
Last time I checked, expired options were not available for historical data requests and only intraday historical data was available (daily data was not available). Hope that helps.
--
By
Orionn
·
#47708
·
|
Re: Historical options pricing
The Contract class has the IncludeExpired field. However, the explaining text mentions: "If set to true, contract details requests and historical data queries can be performed pertaining to expired
By
J G
·
#47707
·
|
Re: How to save Stop loss order fills
Oh yeah, that's what I meant, thanks Sandro!
Please I wrote another thread regarding execution Filter, could you check that message please? I want to know how to use well the
By
jcgtanaka@...
·
#47706
·
|
Re: Limitations on data requests. Requesting 120 options in option chain.
Thanks for the tip! Good to know.
What is not clear for now is the definition of a market data line (because those have the 100 count limit).
1) If I only look at the API (not what's happening in
By
@Nick64
·
#47705
·
|
Re: How do I get my loop to pull in bars every 5 minutes?
Thank you.? Below is how I'm collecting the data.? The script runs just before my order.
By
Jordan <jordan.howell2@...>
·
#47704
·
|
Re: How do I get my loop to pull in bars every 5 minutes?
How about a simple cron job, starting a fetching script which updates a file or triggers some event. Then watch that event with your application.
Don't reinvent the wheel to many times....
By
Hartmut Bischoff
·
#47703
·
|
Re: How to get streaming greek updates from positions with conid
Thanks mate, this is really helpfull enjoy the weekend.
By
YSS <ys.soete@...>
·
#47702
·
|
Re: Historical options pricing
Sorry, to clarify I meant both expired options and currently traded
options.
By
ebtrader
·
#47701
·
|
Historical options pricing
Is it possible to get historical pricing for options?
thanks,
javed
By
ebtrader
·
#47700
·
|
Re: How to get streaming greek updates from positions with conid
Yes, you use the Contract from position callback on the reqMrkData to start streaming market data. There are various callback that will be invoked after that, such as tickPrice, tickSize, or
By
Matthias Frener <matthias.frener@...>
·
#47699
·
|
Re: How to get streaming greek updates from positions with conid
Thank you for your answer, so first I get the positions with reqPositions and then I stream market data not from the position of the spread but by requestion greeks with reqMktData containting the
By
YSS <ys.soete@...>
·
#47698
·
|
Re: How to save Stop loss order fills
I am working with StopLimit orders and they change their status to
"Submitted" once the stop is hit and the order becomes active. I subscribe
to the status event of the order to be notified of
By
Sandro Krumbein
·
#47697
·
|
Re: Where to download previous versions of TWS?
does someone have the 978 version download available for mac windows and linux pls
By
mark M
·
#47696
·
|
ExecutionFilter when requesting execution details
Good evening to all, I want to get details of previous execution details in my app and I have the following error:
"""
Exception in thread Thread-8:
Traceback (most recent call last):
File
By
jcgtanaka@...
·
#47695
·
|