开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育
upper and lower limit
Hello all, I would like to set an upper and lower limit for selling stocks I hold. For example, let's say that I hold 120 shares of SMCI and the current price is 32.50. I would like to SELL those 120
By Danny · #53586 ·
Re: How to get position info in "points"
As Jürgen mentioned, you need to keep track of PnL yourself based on the executions. Reconciliating against reqPnl should be a governance / secondary check function and not be based on for
By mov_ebpesp · #53583 ·
Re: Purebasic and TWS
I am going to have a look on Python, but I am affraid that mastering all the subtleties of a new language could take a lot of time? (a bit lazy
By Tradiator · #53582 ·
Re: Purebasic and TWS
As Richard suggest with reasons, Python is most probably the best choice for a programmer who need to switch to another language You can find a lot of support here in Python, and Java (and
By Gordon Eldest · #53581 ·
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 ·