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

Feature: download specification #110

Merged
merged 5 commits into from
May 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,19 @@ public IBDataDownloader()
Config.Get("ib-trading-mode"),
Config.GetValue("ib-agent-description", Brokerages.InteractiveBrokers.Client.AgentDescription.Individual),
loadExistingHoldings: false);

_brokerage.Message += (object _, Brokerages.BrokerageMessageEvent e) =>
{
if (e.Type == Brokerages.BrokerageMessageType.Error)
{
Logging.Log.Error(e.Message);
}
else
{
Logging.Log.Trace(e.Message);
}
};

_brokerage.Connect();
}

Expand Down
41 changes: 40 additions & 1 deletion interactivebrokers.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,44 @@
"order-types": ["Market", "Limit", "Limit-If-Touched", "Stop Market", "Stop Limit", "Trailing", "Market On Open", "Market On Close", "Combo Market", "Combo Limit", "Combo Leg Limit", "Exercise"],
"assets": ["Equity", "Equity Options", "Futures", "Future Options", "Index Options", "Forex"],
"brokerage-url": "https://www.interactivebrokers.com/",
"documentation": "/docs/v2/cloud-platform/live-trading/brokerages/interactive-brokers"
"documentation": "/docs/v2/cloud-platform/live-trading/brokerages/interactive-brokers",
"module-specification": {
"download": {
"data-types": [
"Trade",
"Quote"
],
"resolutions": [
"Second",
"Minute",
"Hour",
"Daily"
],
"security-types": [
"Equity",
"Option",
"Forex",
"Future",
"Cfd",
"FutureOption",
"Index",
"IndexOption"
],
"markets": [
"USA",
"CME",
"NYMEX",
"COMEX",
"CBOT",
"CBOE",
"HKFE",
"SGX",
"ICE",
"CFE",
"NYSELIFFE",
"Oanda",
"InteractiveBrokers"
]
}
}
}
Loading