RightEdge Forums
Main     Home          Members     Calendar     Who's On

Welcome Guest
        



How to get current cash from the broker? Expand / Collapse
Message
Posted 4/20/2008 16:18:37 Post #5485
 

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru
I'm using the TWS plugin. I can't figure out how to get current cash from the broker. Any suggestions?
Posted 4/20/2008 18:46:37 Post #5487
 

DeveloperDeveloperDeveloperDeveloperDeveloperDeveloperDeveloperDeveloper
You can use SystemData.Broker.GetBuyingPower() to get the buying power.  This should be some multiple (depending on your leverage) of your cash when you have no positions open.  There's not a simple way to get the actual cash right now.  If the buying power isn't sufficient for you, we could probably add an option to the TWS plugin to return the actual cash instead of the buying power when GetBuyingPower is called.

Thanks,
Daniel

Posted 1/28/2010 13:02:04 Post #10622
 

Forum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum MemberForum Member
I replaced buyingPower with NetLiquidation within TWS Plugin source code, but I would like to concentrate on strategy coding instead of extending trading platform functionalities.
My suggestion is to add such a basic informations like Cash Balance and Unrealized PnL to the system. OpenQuant has this and it's important for calculating order size based on money management system.
Posted 2/5/2010 22:52:16 Post #10702
 

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru
Fully agree with the OP. Why cutting down on the functionality IB or others provide through their API. If providing a wrapper rather than the original broker api why not parsing the most important and most often used functions instead of simply excluding them? Current cash balance or net liquidation value is in my humble opinion a much more important metric than even available margin/ buying power.

Posted 2/7/2010 10:58:24 Post #10724
 

DeveloperDeveloperDeveloperDeveloperDeveloperDeveloperDeveloperDeveloper
When we built RightEdge, one of the philosophies we had was that systems shouldn't depend on a specific broker. They should use generic code that would work with any broker there was a plugin for. That's why there's not an easy way to access all of the functionality that TWS provides.

I think user feedback has shown that we weren't entirely correct with that philosophy. For some customers at least, it is important to be able to access broker-specific functions. So as we move forward we will likely try to make it easier to do this.

Thanks,
Daniel
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: billb, young, dplaisted

Permissions Expand / Collapse

All times are GMT -5:00, Time now is 7:10pm

2005-2007 © RightEdge Systems