A python package to identify and parse order for trade execution.
Project description
Find my order
A python package to identify and parse order for trade execution. |
|
---|---|
|
Find & Parse a trade order for execution |
Key features:
- Identify an order with word
BUY SELL LONG SHORT
or your ownBull
,to the moon
,pump
via config file - Parse and return a structured order with action and instrument as mandatory
- Settings for custom option
Install
pip install findmyorder
How to use it
fmo = FindMyOrder()
msg_order = "buy EURUSD sl=1000 tp=1000 q=1 comment=FOMC"
order = await fmo.get_order(msg_order)
#{'action': 'BUY', 'instrument': 'EURUSD', 'stop_loss': '1000', 'take_profit': '1000', 'quantity': '2', 'order_type': None, 'leverage_type': None, 'comment': None, 'timestamp': datetime.datetime(2023, 5, 3, 12, 10, 28, 731282, tzinfo=datetime.timezone.utc)}
Example
Real use case
Documentation
Questions? Want to help?
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
findmyorder-1.3.19.tar.gz
(5.0 kB
view hashes)
Built Distribution
Close
Hashes for findmyorder-1.3.19-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f7aed9f58e67467797595d0a97a475b88d71cbb8fe76b3411ad22e3d154393a |
|
MD5 | e427c83fcb92947b93695befb47a26f4 |
|
BLAKE2b-256 | c3f0192dfb9bc8456ebd88a66d3675c084e0c495719760ecc72e3dc9256af31d |