Session operations
The transport authenticates lazily from IGConfig and owns token refresh. Use
ig.operations.session only for explicit session reads, account switching, encryption keys, or
refresh-token operations. Never log provider credentials or tokens.
| Python operation | IG request | Protocol version |
|---|---|---|
ig.operations.session.get() |
GET /session |
1 |
ig.operations.session.switch_account() |
PUT /session |
1 |
ig.operations.session.delete() |
DELETE /session |
1 |
ig.operations.session.get_encryption_key() |
GET /session/encryptionKey |
1 |