All-in-one trading broker software
Project description
Ecosystem
⭐ Portal: https://bit.ly/finance_analytics
📊 Blog: https://slashpage.com/jh-analytics
📈 Softrader: https://pypi.org/project/softrader
🐍 Python: https://github.com/jhvissotto/Project_Finance_Api_Python
🐍 Pypi: https://pypi.org/project/jh-finance-api
🟦 TScript: https://github.com/jhvissotto/Project_Finance_Api_TScript
🟦 NPM: https://www.npmjs.com/package/finance-analytics-api
🧮 PyHelpers: https://github.com/jhvissotto/Library_Python_Helpers
🔌 Server: https://bit.ly/jh_finance_api
🔌 Swagger: https://bit.ly/jh_finance_api_swagger
Library
!pip install softrader
from softrader import nan
import softrader as st
Connect
client_ib = st.connect('IBROKER', ID=None, SECRET=None, PROVIDER=4002)
client_ap = st.connect('ALPACA', ID='abcd', SECRET='xxyyzzww')
client_mt5 = st.connect('METATRADER', ID=123456, SECRET='password', PROVIDER='brokername')
st.infer_platform(client_ib) == 'IBROKER'
st.infer_platform(client_ap) == 'ALPACA'
st.infer_platform(client_mt5) == 'METATRADER'
Open Position
Send order to any broker with no more configurations
try:
res = st.send_open(client_ib, symbol='MSFT', quant=10, limit=nan, tp=nan, sl=nan, tif='GTC')
print(res)
except Exception as err:
print(err)
Close All Positions
res_close, res_cancel = st.close_all_market_positions(client_ib, cancel_orders=True, on_error='append')
alpaca_response = st.close_all_market_positions(client_ap, cancel_orders=True, on_error='pass')
res_close, res_cancel = st.close_all_market_positions(client_mt5, cancel_orders=True, on_error='raise')
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file softrader-0.1.5.tar.gz.
File metadata
- Download URL: softrader-0.1.5.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.13.2 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
610e6b65fb755c43babd1dd712adfad605396e62c81c89ea1c7f9410c5bc8a52
|
|
| MD5 |
6eecc2c04211f9d4c0f2607e37a7de97
|
|
| BLAKE2b-256 |
b8a73a8a324841c6ecd65ea08266d7d92ca9d9d3a8c2bf79d4b02b03c8a39425
|
File details
Details for the file softrader-0.1.5-py3-none-any.whl.
File metadata
- Download URL: softrader-0.1.5-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.2 CPython/3.13.2 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e8a3103049903b0dd17dc5e3cc2cef3b2b82b34648810359c13f1f86a9231bf
|
|
| MD5 |
25dd25a5e30d5f65fb2da684a09f29f9
|
|
| BLAKE2b-256 |
09a2de598ae5892d78f45fc1423550b1022406343bb1d22c5a755a67472fb24e
|