vortex-api 1.0.6.dev1__tar.gz → 1.0.6.dev2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {vortex_api-1.0.6.dev1 → vortex_api-1.0.6.dev2}/PKG-INFO +27 -1
- {vortex_api-1.0.6.dev1 → vortex_api-1.0.6.dev2}/README.md +26 -0
- {vortex_api-1.0.6.dev1 → vortex_api-1.0.6.dev2}/vortex_api/__version__.py +1 -1
- {vortex_api-1.0.6.dev1 → vortex_api-1.0.6.dev2}/vortex_api.egg-info/PKG-INFO +27 -1
- {vortex_api-1.0.6.dev1 → vortex_api-1.0.6.dev2}/LICENSE +0 -0
- {vortex_api-1.0.6.dev1 → vortex_api-1.0.6.dev2}/setup.cfg +0 -0
- {vortex_api-1.0.6.dev1 → vortex_api-1.0.6.dev2}/setup.py +0 -0
- {vortex_api-1.0.6.dev1 → vortex_api-1.0.6.dev2}/vortex_api/__init__.py +0 -0
- {vortex_api-1.0.6.dev1 → vortex_api-1.0.6.dev2}/vortex_api/api.py +0 -0
- {vortex_api-1.0.6.dev1 → vortex_api-1.0.6.dev2}/vortex_api/vortex_feed.py +0 -0
- {vortex_api-1.0.6.dev1 → vortex_api-1.0.6.dev2}/vortex_api.egg-info/SOURCES.txt +0 -0
- {vortex_api-1.0.6.dev1 → vortex_api-1.0.6.dev2}/vortex_api.egg-info/dependency_links.txt +0 -0
- {vortex_api-1.0.6.dev1 → vortex_api-1.0.6.dev2}/vortex_api.egg-info/requires.txt +0 -0
- {vortex_api-1.0.6.dev1 → vortex_api-1.0.6.dev2}/vortex_api.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: vortex_api
|
|
3
|
-
Version: 1.0.6.
|
|
3
|
+
Version: 1.0.6.dev2
|
|
4
4
|
Summary: Vortex APIs to place orders in AsthaTrade Flow application
|
|
5
5
|
Home-page: https://vortex.asthatrade.com
|
|
6
6
|
Download-URL: https://github.com/AsthaTech/pyvortex
|
|
@@ -57,6 +57,32 @@ client.place_order(
|
|
|
57
57
|
client.orders(limit=20,offset=1)
|
|
58
58
|
|
|
59
59
|
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
# Connecting to websocket
|
|
63
|
+
|
|
64
|
+
```
|
|
65
|
+
from vortex_api import VortexFeed
|
|
66
|
+
from vortex_api import Constants as Vc
|
|
67
|
+
|
|
68
|
+
def main():
|
|
69
|
+
# Get access token from any of the login methods
|
|
70
|
+
wire = VortexFeed(access_token)
|
|
71
|
+
|
|
72
|
+
wire.on_price_update = on_price_update
|
|
73
|
+
wire.on_order_update = on_order_update
|
|
74
|
+
wire.on_connect = on_connect
|
|
75
|
+
|
|
76
|
+
def on_price_update(ws,data):
|
|
77
|
+
print(data)
|
|
78
|
+
|
|
79
|
+
def on_order_update(ws,data):
|
|
80
|
+
print(data)
|
|
81
|
+
|
|
82
|
+
def on_connect(ws, response):
|
|
83
|
+
ws.subscribe(Vc.ExchangeTypes.NSE_EQUITY, 26000) # Subscribe to NIFTY 50
|
|
84
|
+
ws.subscribe(Vc.ExchangeTypes.NSE_EQUITY, 26000) # Subscribe to BANKNIFTY
|
|
85
|
+
|
|
60
86
|
```
|
|
61
87
|
Refer to the [python document](https://vortex.asthatrade.com/docs/pyvortex/vortex_api.html) for all methods and features
|
|
62
88
|
|
|
@@ -36,6 +36,32 @@ client.place_order(
|
|
|
36
36
|
client.orders(limit=20,offset=1)
|
|
37
37
|
|
|
38
38
|
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
# Connecting to websocket
|
|
42
|
+
|
|
43
|
+
```
|
|
44
|
+
from vortex_api import VortexFeed
|
|
45
|
+
from vortex_api import Constants as Vc
|
|
46
|
+
|
|
47
|
+
def main():
|
|
48
|
+
# Get access token from any of the login methods
|
|
49
|
+
wire = VortexFeed(access_token)
|
|
50
|
+
|
|
51
|
+
wire.on_price_update = on_price_update
|
|
52
|
+
wire.on_order_update = on_order_update
|
|
53
|
+
wire.on_connect = on_connect
|
|
54
|
+
|
|
55
|
+
def on_price_update(ws,data):
|
|
56
|
+
print(data)
|
|
57
|
+
|
|
58
|
+
def on_order_update(ws,data):
|
|
59
|
+
print(data)
|
|
60
|
+
|
|
61
|
+
def on_connect(ws, response):
|
|
62
|
+
ws.subscribe(Vc.ExchangeTypes.NSE_EQUITY, 26000) # Subscribe to NIFTY 50
|
|
63
|
+
ws.subscribe(Vc.ExchangeTypes.NSE_EQUITY, 26000) # Subscribe to BANKNIFTY
|
|
64
|
+
|
|
39
65
|
```
|
|
40
66
|
Refer to the [python document](https://vortex.asthatrade.com/docs/pyvortex/vortex_api.html) for all methods and features
|
|
41
67
|
|
|
@@ -2,7 +2,7 @@ __name__ = "vortex_api"
|
|
|
2
2
|
__description__ = "Vortex APIs to place orders in AsthaTrade Flow application"
|
|
3
3
|
__url__ = "https://vortex.asthatrade.com"
|
|
4
4
|
__download_url__ = "https://github.com/AsthaTech/pyvortex"
|
|
5
|
-
__version__ = "1.0.6.
|
|
5
|
+
__version__ = "1.0.6.dev2"
|
|
6
6
|
__author__ = "Astha Credit & Securities Pvt Ltd."
|
|
7
7
|
__author_email__ = "tech@asthatrade.com"
|
|
8
8
|
__license__ = "MIT"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: vortex-api
|
|
3
|
-
Version: 1.0.6.
|
|
3
|
+
Version: 1.0.6.dev2
|
|
4
4
|
Summary: Vortex APIs to place orders in AsthaTrade Flow application
|
|
5
5
|
Home-page: https://vortex.asthatrade.com
|
|
6
6
|
Download-URL: https://github.com/AsthaTech/pyvortex
|
|
@@ -57,6 +57,32 @@ client.place_order(
|
|
|
57
57
|
client.orders(limit=20,offset=1)
|
|
58
58
|
|
|
59
59
|
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
# Connecting to websocket
|
|
63
|
+
|
|
64
|
+
```
|
|
65
|
+
from vortex_api import VortexFeed
|
|
66
|
+
from vortex_api import Constants as Vc
|
|
67
|
+
|
|
68
|
+
def main():
|
|
69
|
+
# Get access token from any of the login methods
|
|
70
|
+
wire = VortexFeed(access_token)
|
|
71
|
+
|
|
72
|
+
wire.on_price_update = on_price_update
|
|
73
|
+
wire.on_order_update = on_order_update
|
|
74
|
+
wire.on_connect = on_connect
|
|
75
|
+
|
|
76
|
+
def on_price_update(ws,data):
|
|
77
|
+
print(data)
|
|
78
|
+
|
|
79
|
+
def on_order_update(ws,data):
|
|
80
|
+
print(data)
|
|
81
|
+
|
|
82
|
+
def on_connect(ws, response):
|
|
83
|
+
ws.subscribe(Vc.ExchangeTypes.NSE_EQUITY, 26000) # Subscribe to NIFTY 50
|
|
84
|
+
ws.subscribe(Vc.ExchangeTypes.NSE_EQUITY, 26000) # Subscribe to BANKNIFTY
|
|
85
|
+
|
|
60
86
|
```
|
|
61
87
|
Refer to the [python document](https://vortex.asthatrade.com/docs/pyvortex/vortex_api.html) for all methods and features
|
|
62
88
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|