Re: IB question
The OP said "Every request which has a limited length of data in return has an indicator that IB has sent all data which it has to reply to your request."
Maybe slow down and understand what people
By
Nick <news1000@...>
·
#47431
·
|
Re: IB question
Its not true that for every request type that one receives there is an end.
Think market depth. But otherwise, generally Yes there is an end and yes
sleep should not be used.
[email protected]>
By
Bruce B
·
#47430
·
|
Re: IB question
Don't use sleep commands. That is not how the IB API is designed. Every request which has a limited length of data in return has an indicator that IB has sent all data which it has to reply to your
By
J G
·
#47429
·
|
retrieve ISSUER_COUNTRY_CODE from scanner subscription method call
Does anybody know how to retrieve the?ISSUER_COUNTRY_CODE from a scanner subscription method call?
By
mrc.lgl@...
·
#47428
·
|
Re: IB question
None of the IB API works this way. The entire API is asynchronous.
If you have anything that looks like "make request and don't return until complete" it is being created by middleware, either the
By
Nick <news1000@...>
·
#47427
·
|
Re: IB question
Curious. When running the method below, I often do not get this output:
Waiting for IB's API response for Net Asset Value Liquidation requests...
reqId Account Tag Value
By
Stuart Cracraft <smcracraft@...>
·
#47426
·
|
Re: Black-Scholes-Merton - Risk Free Interest Rate and which Volatility value do I use?
I'd like to see the code for the interest rate data curve fitting. I'm hitting a problem where I can get the IV for the current session pretty close to BARCHART's which I use as a reference BUT in
By
comicpilsen
·
#47425
·
|
Re: Historical Data Errors
I noticed that when I request historical data going back multiple years, sometimes the historical data returned is incomplete. I soon realized that whatever I see on TWS, is what I get from the
By
Rational-IM
·
#47424
·
|
Re: IB question
I have searched in the past for a way to avoid the use of "time.sleep(x)" when requesting data. However, I didn't find anything useful. Would be great if someone could pitch in with a solution (maybe
By
Rational-IM
·
#47423
·
|
Re: Black-Scholes-Merton - Risk Free Interest Rate and which Volatility value do I use?
Dear Bruno,? Sincerely thank you for the info.
I can handle the IV now - that answer was perfect.
Regarding the Interest rate though:
Would you be willing to provide a link to where you pull that
By
Don (KN3N)
·
#47421
·
|
Re: Black-Scholes-Merton - Risk Free Interest Rate and which Volatility value do I use?
Don,
I pull rates from the Internet (from overnight to 6 months or longer) then I fit a curve and I use the given rate for the expiration of interest.
Re IV: you can of course use IB's calculations,
By
Bruno Voisin
·
#47420
·
|
Re: Request only secId out of reqContractDetails.
Hi Aquiles, try this:
def contractDetails(self, reqId:int, contractDetails:ContractDetails):
print("contractDetail: ", reqId, " ", contractDetails.contract.secId)
By
@ScottBrian
·
#47419
·
|
Re: How to track orders via API, works in live not in paper trading
Every order must have an orderId assigned to when it is placed. Also on the paper account. And yes, the orderId is the easiest way to refer to a special order.
By
Despair
·
#47418
·
|
Request only secId out of reqContractDetails.
I have the following code that gets contract details.
from ibapi.client import EClient
from ibapi.wrapper import EWrapper
from ibapi.common import *
from ibapi.contract import *
class
By
Aquiles P¨¢ez <aquilesjlp300@...>
·
#47417
·
|
Black-Scholes-Merton - Risk Free Interest Rate and which Volatility value do I use?
The main questions are *where do I get the 'Risk Free Interest Rate'* and *which volatility value should I use* ?
I've searched and see lots of weird answers, so maybe this question does not have a
By
Don (KN3N)
·
#47416
·
|
Re: IB question
Here is the complete current code.
Try running this.
Should see an error where it returns an empty frame in the set of 3 requests for
all positions, total NAV, and then the Cash. Those are the three
By
Stuart Cracraft <smcracraft@...>
·
#47415
·
|
Re: IB question
Done.
I¡¯ve upvoted it and deleted the comment.
On another note, I¡¯ve run it and at the 3 second timer you have in it, get alot of non-reported numbers.
E.g. empty frames.
Bumping that up to 10
By
Stuart Cracraft <smcracraft@...>
·
#47414
·
|
Re: IB question
There is already a comment on Stackoverflow about this - see below. You might want to delete your comment there (i.e. on Stackoverflow) so it doesn't pollute the post.
By
Rational-IM
·
#47413
·
|
python code question related to IB
Hi,
In this code, I need to know how to add the current settled cash available in the connected IB account.
Once i have that, I can go off into Never Never Land just like Peter Pan.
By
Stuart Cracraft <smcracraft@...>
·
#47412
·
|
Re: IB question
It works perfectly!
But my question was how do I get the settled cash in the account representing how much more can be bought?
Thankyou.
./rationalIMatstackoverflow.py
Testing IB's API as an
By
Stuart Cracraft <smcracraft@...>
·
#47411
·
|