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_order(symbol, cmd, volume, price, slippage, stoploss, takeprofit,comment)
API.open_order('EURUSD', 1, 0.01, 1.18245, 3, 0, 0,'comment')
# close_order(ticket, volume, price)
API.close_order(9999999,0.01,1.18245)
# trades_history_by_datetime(start_time, end_time)
API.trades_history_by_datetime('2021-07-04 000000', '2021-07-16 075150')
# trades_history_by_unixtime(start_time_ctm, end_time_ctm)
API.trades_history_by_unixtime(1625991769, 1626423769)
# opened_trades()
API.opened_trades()
# account_info()
API.account_info()
# server_time()
API.server_time()
Price data
# initialize data streaming for XAUUSD
API.initialize_price_stream('XAUUSD')
# get current price
API.current_price()
# 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
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
sigmatmpy-0.0.16.tar.gz
(6.4 kB
view details)
Built Distribution
File details
Details for the file sigmatmpy-0.0.16.tar.gz
.
File metadata
- Download URL: sigmatmpy-0.0.16.tar.gz
- Upload date:
- Size: 6.4 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99034932d61e53adcc4140ba4a5726ee450e03ced03f10615cc8532ad49863dc |
|
MD5 | c073ff27fa07d920e7bf2e0376e131d0 |
|
BLAKE2b-256 | 5bcddaf3cd513f39e25277bd701684dcc2ad6c25912ee6281ab1f3c9f24ed9ae |
File details
Details for the file sigmatmpy-0.0.16-py3-none-any.whl
.
File metadata
- Download URL: sigmatmpy-0.0.16-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6448c84b8a3f3118a21c50786c5b8149195b1b37f537b1bd488939afd34d311 |
|
MD5 | 4862ba85fa4fa30117d3e5c32f413493 |
|
BLAKE2b-256 | 13cb27226295a35402e700158c17036dd8f2d83d36104abd38349e1a5d594a33 |