Skip to main content

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')

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)

Source distribution for softrader 0.1.5
File Size Uploaded
softrader-0.1.5.tar.gz 4.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for softrader 0.1.5
File Interpreter ABI Platform
softrader-0.1.5-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page