Skip to main content

A python package to identify and parse order for trade execution.

Project description

Find my order

Logo A python package to identify and
parse order for trade execution.

wiki Pypi Version
Pypi
👷‍♂️Flow codebeat badge codecov
Find & Parse a trade order for execution

Key features:

  • Identify an order with word BUY SELL LONG SHORT or your own Bull, 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

example

Real use case

TalkyTrader, submit trading order to CEX & DEX with messaging platform (Telegram, Matrix and Discord)

Documentation

wiki

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.2.tar.gz (5.8 kB view hashes)

Uploaded Source

Built Distribution

findmyorder-1.5.2-py3-none-any.whl (6.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page