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
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.4.1.tar.gz
(5.4 kB
view hashes)
Built Distribution
Close
Hashes for findmyorder-1.4.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c52f9fd9e4559fd26e46260ad8fff6febbedfc72c521799ae44aaa3ff08b589b |
|
MD5 | 407f484e0fbbd6efb5c8ede1c7b1b295 |
|
BLAKE2b-256 | d7a3263eeee31ea0e714686c1c57494e88943d8b8cd4996e398f0692f235c3a4 |