开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育
Re: Purebasic and TWS
Thank you for your detailed response. My first idea was to use VB6 that I have used in the past but it is no longer supported. Switching to VB.NET seems to be a step as large as to any other
By Tradiator · #53580 ·
Re: Purebasic and TWS
You need to decide what your priorities are. If you just want a large challenge, by all means push ahead with PureBasic, but it will be difficult to say the least because you’ll be pretty much
By Richard L King · #53579 ·
Re: No Security definition has been found for the request when running cpp sample code
reqRealTimeBars is served by the historical data server. But IBKR does not maintain ‘last price’ historical data for forex pairs. So you will never get realtime bars for any forex pair, if you
By Richard L King · #53578 ·
Re: Is there generic method to format contract for reqContractDetails
Glad that this works for you. There is one caveat about requesting contracts by ConId. It may not apply to your use case but you should be aware (and you may already be). The ConId uniquely
By Jürgen Reinold · #53577 ·
No Security definition has been found for the request when running cpp sample code
Hi, I'been trying to run the cpp sample code to reqRealTimeBars for some contract. but the ib server returns no security defintionn found even though I was using the sample contract.
By Axelord · #53576 ·
Re: Purebasic and TWS
I haven't seen an API version for basic or purebasic.? There are versions for C++, C#, Python, java and others.? But I'm not sure if that would work well and you wouldn't have much for support as
By Mel · #53575 ·
Purebasic and TWS
Hi, I am looking for Purebasic source code that uses TWS API. I am a begineer in Purebasic and TWS but not in programming but dont really know where to start. For example do I have to: 1 - Load a
By Tradiator · #53574 ·
Re: Is there generic method to format contract for reqContractDetails
Actually, I was wrong, yes, ConId is enough. It didn't work for SPY because that was the only security I defined manually, so it didn't have ConId.
By Andy Sanders · #53573 ·
Re: Is there generic method to format contract for reqContractDetails
I wish that was true but it is not. Just double checked, having only ConID doesn't work for SPY stock, other security types work fine. *Error validating request.-'bI' : cause - The symbol or the
By Andy Sanders · #53572 ·
The difference between realtimebar vs reqHistoricalData with barSizeSetting = "5S" and keepUpToDate = True
Hi All, do you guys know what is the difference between realtimebar vs reqHistoricalData with barSizeSetting = "5S" and keepUpToDate = True? Thanks xb
By xb · #53571 ·
Re: Is there generic method to format contract for reqContractDetails
The ConId by itself uniquely identifies the Contract. If you already have a ConId (as you said from orders, positions, or similar objects), SecType and LocalSymbol are not required to retrieve the
By Jürgen Reinold · #53570 ·
Re: Is there generic method to format contract for reqContractDetails
Thank you for the explanation. After mentioning that contract can be "overspecified", I tried? to simplify definition instead of complicating it. Appeared to be that specifying only 3 fields is
By Andy Sanders · #53569 ·
Re: Is there generic method to format contract for reqContractDetails
The Contract object contains a lot of information about an instrument, but the various API request calls thatt take Contract object parameters transmit only a subset of those to TWS/IBGW. Which those
By Jürgen Reinold · #53568 ·
Is there generic method to format contract for reqContractDetails
To get stock contract, it requires only 4 fields. Name = "SPY" Exchange = "SMART" SecType = "STK" Currency = "USD" For stock options, the 4 fields above + 3 more Right = "C" Strike =
By Andy Sanders · #53567 ·
Re: How to get position info in "points"
For the future readers. Using average open price and the current price, you can get PnL in points. https://www.mql5.com/ru/forum/37666#comment_1179929 Average opening price: (
By Andy Sanders · #53566 ·
Re: TWS API Stopped accepting incoming connections sometimes
Please see the other thread: ?/g/twsapi/topic/107684402 The same issue is being mentioned there.
By J G · #53565 ·
TWS API Stopped accepting incoming connections sometimes
TWS sometimes suddenly cannot connect, and it must be re-verified and logged in again to fix it. Belows are gateway logs happened before my connection failure today 2024-11-29 08:37:59.254 [EY] INFO
By xb · #53564 ·
Re: No real-time data after IB nightly server reset
I have an open ticket with IBKR about a very similar (even identical?) topic since a couple of weeks. I have experienced the same problems where on some days Gateway would not recover after a daily
By J G · #53563 ·
Re: How to get position info in "points"
If you are not collecting order executions through the API as Juergen suggested, the other way to approach this is to collect and aggregate IBKR's trade reports or custom designed flex reports from
By ds-avatar · #53562 ·
Re: How to get position info in "points"
It sounds like you are looking in the wrong corner. At any point in time, a "Position" represents the cumulative effect of one or more Trades (Executions) that were caused by one or more Orders for
By Jürgen Reinold · #53561 ·