You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is only one class in the whole library: `AliceBlue`. The `login_and_get_sessioID()` static method is used to retrieve session ID from alice blue server. A session ID is valid for 24 hours.
32
+
There is only one class in the whole library: `AliceBlue`. The `login_and_get_sessionID()` static method is used to retrieve session ID from alice blue server. A session ID is valid for 24 hours.
33
33
With session ID, you can instantiate an AliceBlue object. Ideally you only need to create a session ID once every day. Once the session ID is created new, it'll be stored in a temporary location. Next time, the same session ID will be used.
api_secret is unique for each and every account. You need to enable api trading and get api_secret from alice blue.
50
-
1. Please [contact](https://www.aliceblueonline.com/contact-us/) alice blue to get access to api.
51
-
2. After you get a response from alice blue, login to [developer console](http://developers.aliceblueonline.com).
52
-
3. Click on 'Create New App'.
53
-
4. Enter 'App Name' as you like. Enter 'Redirect URL' and 'Post Back URL' as `https://ant.aliceblueonline.com/plugin/callback`.
54
-
5. Click on 'Save'.
55
-
6. Copy the 'App Code' and 'App Secret'. You will need these to generate a session ID.
50
+
1. Login to [developer console](http://developers.aliceblueonline.com).
51
+
1. Click on 'Create New App'.
52
+
1. Enter 'App Name' as you like. Enter 'Redirect URL' and 'Post Back URL' as `https://ant.aliceblueonline.com/plugin/callback`.
53
+
1. Click on 'Save'.
54
+
1. Copy the 'App Code' and 'App Secret'. You will need these to generate a session ID.
56
55
57
56
### Getting an session ID
58
57
1. Import alice_blue
59
58
```python
60
59
from alice_blue import*
61
60
```
62
61
63
-
2. Create `session_id` using `login_and_get_sessioID()` function with your `username`, `password`, `2FA (2fa is now year of birth)`, `app_id` and `api_secret`.
62
+
2. Create `session_id` using `login_and_get_sessionID()` function with your `username`, `password`, `2FA (2fa is now year of birth)`, `app_id` and `api_secret`.
0 commit comments