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')
Metadata
Release files for softrader 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| softrader-0.1.5.tar.gz | 4.9 kB | Without provenance | Details for softrader-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| softrader-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for softrader-0.1.5-py3-none-any.whl |
Total release size: 12.0 kB
Release files / softrader-0.1.5.tar.gz
| Download URL | softrader-0.1.5.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
610e6b65fb755c43babd1dd712adfad605396e62c81c89ea1c7f9410c5bc8a52
|
|
BLAKE2b-256 checksum How to use checksums |
b8a73a8a324841c6ecd65ea08266d7d92ca9d9d3a8c2bf79d4b02b03c8a39425
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.2 CPython/3.13.2 Windows/10
|
Release files / softrader-0.1.5-py3-none-any.whl
| Download URL | softrader-0.1.5-py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2e8a3103049903b0dd17dc5e3cc2cef3b2b82b34648810359c13f1f86a9231bf
|
|
BLAKE2b-256 checksum How to use checksums |
09a2de598ae5892d78f45fc1423550b1022406343bb1d22c5a755a67472fb24e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.2 CPython/3.13.2 Windows/10
|
Security for softrader 0.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.