Vortex APIs to place orders in AsthaTrade Flow application
Project description
Vortex API Python Client
Installation
pip install vortex-api
Api Usage
from vortex_api import AsthaTradeVortexAPI
from vortex_api import Constants as Vc
client = AsthaTradeVortexAPI("your api secret","your application id")
#For client login using TOTP
client.login("client code","client password","totp")
# Place order
client.place_order(
exchange = Vc.ExchangeTypes.NSE_EQUITY,
token = 22,
transaction_type = Vc.TransactionSides.BUY,
product = Vc.ProductTypes.DELIVERY,
variety = Vc.VarietyTypes.REGULAR_LIMIT_ORDER,
quantity = 1,
price = 1700.0,
trigger_price=0.0,
disclosed_quantity= 0,
validity = Vc.ValidityTypes.FULL_DAY)
#Get order book
client.orders(limit=20,offset=1)
Refer to the python document for all methods and features
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
vortex_api-1.0.5.tar.gz
(9.2 kB
view hashes)
Built Distribution
Close
Hashes for vortex_api-1.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb9379d9a8d45219770eb5cbee9376faaba5ea50d5f416eaf2815d12428ea3e6 |
|
MD5 | 8dba1408d0f018ec0315f1ad9ce7b55f |
|
BLAKE2b-256 | c9e67632140f07f86b6f3252936f0bcd3bb0c1c22ad78f309750b56421d58566 |