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
- Capability to map a given instrument to a new one (e.g BTC to WBTC or ETHUSD to ETH)
- Settings for custom options
Install
pip install findmyorder
How to use it
>>> from findmyorder import FindMyOrder
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.5.3.tar.gz
(6.0 kB
view hashes)
Built Distribution
Close
Hashes for findmyorder-1.5.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eab9b75144f4ee2646c0b61ec8ce21c45861ec357000e391bc2c9e452f729058 |
|
MD5 | 9bb90e71f2db49c3d19df434ad548ab4 |
|
BLAKE2b-256 | 3b6f1a782a2fe25d3c1d446400d5dea8010a10bfe12d25f8a969d503b0b4e0cf |