feat: add optional hosted-TickerAll data/execution provider - #9
Open
miguelangelo78 wants to merge 1 commit into
Open
feat: add optional hosted-TickerAll data/execution provider#9miguelangelo78 wants to merge 1 commit into
miguelangelo78 wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an optional TickerAll provider so QuantumTerminal can run without a local MetaTrader 5 terminal.
The problem
Right now QuantumTerminal needs the MT5 terminal running locally for data and trades. That ties it to a Windows machine with the terminal open, and the MT5 Python API isn't thread-safe, so under load it can crash or return bad data (issue #1).
This provider is an alternative path that avoids those constraints.
The Solution: TickerAll
https://tickerall.com
TickerAll is a hosted API for accessing MT5 and MT4 accounts: you give it a broker login and it lets you connect to your MT5 broker without having to run MT5 locally. It returns ticks, candles, positions, account info, and order execution over REST and WebSocket, with no MT5 terminal involved.
Problems it solves:
MetaTrader5Python package isn't loaded with this provider, the thread-safety problem in Fix MT5 thread-safety issues in data_server.py #1 can't happen anymore.You can still run the original MT5 logic, just need to unset the env var
TICKERALL_API_KEY.Trying it
You will need to get a
TICKERALL_API_KEY, which is free!Then start QuantumTerminal the usual way.
To go back to MT5, unset
TICKERALL_API_KEY.What changed
A new provider in
backend/providers/, small hooks so the existing account/positions/status routes can use it, and an optional dependency inrequirements.txt. Docs and tests are included.