SmartAlpha Connect
Project description
Smart Alpha Connect API
Installation
Run the following command to install :
pip install smart-alpha-connect
Usage
from SmartAlphaConnect import create_session
# Create a session using your clientID and smarttraderkey
session_data = create_session(clientID, smarttraderkey)
if session_data is not None:
print(session_data)
# Get the access token from the response received through create_session in session_data
access_token = session_data.get("accesstoken")
# Import all the other functionalities
from SmartAlphaConnect import get_funds,get_orderbook,place_order,get_tradebook
# Get the funds data
funds_data = get_funds(clientID, access_token)
if funds_data is not None:
print(funds_data)
# Get the orderbook data
orderbook_data = get_orderbook(clientID, access_token)
if orderbook_data is not None:
print(orderbook_data)
# Place an order
placeorder_data = place_order(access_token, exchange, token,action, producttype, quantity, price, clientID, orderidentifier)
if placeorder_data is not None:
print(placeorder_data)
# Get the tradebook data
tradebook_data = get_tradebook(clientID, access_token)
if tradebook_data is not None:
print(tradebook_data)
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
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 smart-alpha-connect-0.0.2.tar.gz.
File metadata
- Download URL: smart-alpha-connect-0.0.2.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
384832c39bf3ee7e35a39603eea65208e9910531cc712b7bef754225786dbab9
|
|
| MD5 |
bbb386cd0555a9e467cf48b10295a0fe
|
|
| BLAKE2b-256 |
eed063e04e10364fbbdc3cdae181163afb6fad2c5c1b0504de3a72f9e178bd71
|
File details
Details for the file smart_alpha_connect-0.0.2-py3-none-any.whl.
File metadata
- Download URL: smart_alpha_connect-0.0.2-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28281f611a5c818b10f20e0e6ec52de88382f4621f0b74bddb42ff9781a46081
|
|
| MD5 |
348e18323323baed8b8914b3c7ffc154
|
|
| BLAKE2b-256 |
9f0d073d7c580393e92ee6cc151e734df2cf50f0da2e55fe3fafe58ecf4d2d8b
|