Tokens
get_token() async ¶
Get the token used to access OpenBB.
Returns:
| Type | Description |
|---|---|
TokenResponse |
|
Source code in projects/gptstonks_api/gptstonks/api/routers/tokens.py
update_token(token_data) async ¶
Update the token used to access OpenBB.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
token_data | `TokenData` | Token data information to update the database. | required |
Returns:
| Type | Description |
|---|---|
MessageResponse |
|