Skip to main content

BFJ manager api for python user

Project description

SIGMATMPY

SIGMATMPY-library is an APIRequest driven trading and monitoring platform. Each functionality (trades, price etc.) is represented by it's own class covering all aspect of that functionality.

Getting Started

Installation

$ pip install sigmatmpy

Basic functions

import sigmatmpy

# initualize APIRequest token
username = 'username'
password = 'password'
API = sigmatmpy.API(username,password)

# open a live order
API.open_order('EURUSD', 1, 0.01, 1.18245, 3, 0, 0,'comment')

# open a pending order (limit and stop order)
API.open_order('EURUSD', 3, 0.01, 1.18245, 3, 0, 0,'comment')

# close a live order 
API.close_order(9999999, 0.01, 1.18245)

# delete a pending order 
API.close_order(9999999)

# get trades history by datetime 
API.trades_history_by_datetime('2021-07-04 000000', '2021-07-16 075150')

# get trades history by unixtime 
API.trades_history_by_unixtime(1625991769, 1626423769)

# get live trades
API.live_trades()

# get account information
API.account_info()

# get server time
API.server_time()

Price data

# initialize data streaming for XAUUSD
API.initialize_price_stream('XAUUSD')

# get current price
API.current_price('XAUUSD')

# get XAUUSD 5 min bar chart data
API.bar_chart('XAUUSD', 5)

# check appearance of new bar
API.check_new_bar('XAUUSD', 5)

Release History 版本历史

Authors 关于作者

  • SIGMATM - Initial work - [SIGMATM]

查看更多关于这个项目的贡献者,请阅读 contributors

License 授权协议

这个项目 MIT 协议, 请点击 LICENSE.md 了解更多细节。

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sigmatmpy-0.0.19.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

sigmatmpy-0.0.19-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file sigmatmpy-0.0.19.tar.gz.

File metadata

  • Download URL: sigmatmpy-0.0.19.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for sigmatmpy-0.0.19.tar.gz
Algorithm Hash digest
SHA256 bfb9fc9f3689ca0732e0c839d6dd47d9c45d07aaabdf9f11dc9c843541794c6a
MD5 85c3571b7fc69fdf4a868120d9ffacbb
BLAKE2b-256 a9b6b405be3e3f2367a1e9018b47774c04e3853972246951a8e53d6225afa709

See more details on using hashes here.

File details

Details for the file sigmatmpy-0.0.19-py3-none-any.whl.

File metadata

  • Download URL: sigmatmpy-0.0.19-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for sigmatmpy-0.0.19-py3-none-any.whl
Algorithm Hash digest
SHA256 cb38d10873a7a344104328536cf896379f217f778e19d5e9b0d1f334210c8903
MD5 28dfe07fec0b431db84791166360fe78
BLAKE2b-256 9edf41e54baa62a6421c17f2b2dedead673c486e8b3b663303fcf64f3483456b

See more details on using hashes here.

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