RightEdge Forums
Main
Home
Search
Members
Calendar
Who's On
Welcome Guest
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
»
General
»
Community Support
»
How to get current cash from the broker?
How to get current cash from the broker?
Rate Topic
Display Mode
Topic Options
Message
Posted 4/20/2008 16:18:37
Post #5485
rolfe
rolfe
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
dplaisted
dplaisted
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
Largo
Largo
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
bbmat173
bbmat173
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
dplaisted
dplaisted
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
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators:
billb
,
young
,
dplaisted
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
may
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
may
post and upload images.
Forum Jump...
----------------
Forum Home
Search
Members List
Calendar
Who's Online
----------------
RightEdge Announcements
|-- RightEdge Announcements
General
|-- General Discussion
|-- Community Support
|-- Suggestion Box
|-- Plugin Development
Trading
|-- Trading Systems
|---- Uploaded Trading Systems
|-- Technical Indicators
|-- Order Execution
|-- Trading Vehicles
Programming and Software Development
|-- Programming Questions
All times are GMT -5:00, Time now is 7:10pm
2005-2007 © RightEdge Systems