Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IBKR README: Add comment to each section saying "look for evidence in table XXXX" #37

Open
margaretkennedy opened this issue Mar 30, 2022 · 0 comments

Comments

@margaretkennedy
Copy link
Contributor

In the readme there is a list of tables. Good.

However, after I run respective sections of the readme, I would like to be directed to tables that can show evidence of success of the script I just ran.

So, after the readme section about getting market data htat has this bit of code:
`from ibapi.contract import Contract

import deephaven_ib as dhib

Use delayed market data if you do not have access to real-time

client.set_market_data_type(dhib.MarketDataType.DELAYED)

client.set_market_data_type(dhib.MarketDataType.REAL_TIME)

c = Contract()
c.symbol = 'AAPL'
c.secType = 'STK'
c.exchange = 'SMART'
c.currency = 'USD'

rc = client.get_registered_contract(c)
print(rc)

client.request_market_data(rc)
client.request_tick_data_realtime(rc, dhib.TickDataType.BID_ASK)
client.request_tick_data_realtime(rc, dhib.TickDataType.LAST)
client.request_tick_data_realtime(rc, dhib.TickDataType.MIDPOINT)`

Then perhaps add a comment:

"You will see market data flowing in real-time in the table ticks_price and ticks_bid_ask, for example."

I would add similar commments after the Request-News code snippet and Order-Management code snippet.

In contrast, after the "Query and do math", the script brings the user to the bars_joined table....
And after the plotting script, the plot pops up in the wed IDE as evidence.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant