Skip to content

Commit aa654cd

Browse files
authored
Add note about using is_test and remember_token for additional sessions (#203)
1 parent 7928e9b commit aa654cd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: docs/sessions.rst

+4-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ To create a production (real) session using your normal login:
1212
from tastytrade import Session
1313
session = Session('username', 'password')
1414
15-
A certification (test) account can be created `here <https://developer.tastytrade.com/sandbox/>`_, then used to create a session:
15+
A certification (test) account can be created `here <https://developer.tastytrade.com/sandbox/>`_, then used to create a session.
1616

1717
.. code-block:: python
1818
@@ -27,3 +27,6 @@ You can make a session persistent by generating a remember token, which is valid
2727
remember_token = session.remember_token
2828
# remember token replaces the password for the next login
2929
new_session = Session('username', remember_token=remember_token)
30+
31+
.. note::
32+
If you used a certification (test) account to create the session associated with the `remember_token`, you must set `is_test=True` when creating subsequent sessions.

0 commit comments

Comments
 (0)