Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LEAN CLI CharlesSchwab Brokerage support #517

Merged
Merged
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
efed71c
feat: CharlesSchwab in Readme
Romazes Nov 14, 2024
8c2d4e4
remove: obsolete TDAmeritrade
Romazes Nov 14, 2024
d2c1bac
feat: add project_id to authorize in auth0_client
Romazes Dec 18, 2024
aeded88
feat: use default project id like 0 if configuration is none
Romazes Dec 19, 2024
4de30a4
Revert "feat: use default project id like 0 if configuration is none"
Romazes Dec 19, 2024
259f317
Revert "feat: add project_id to authorize in auth0_client"
Romazes Dec 19, 2024
0828c0e
feat: add project_id to authorize in auth0_client
Romazes Dec 19, 2024
18ce5bd
refactor: set project_id in config_manager
Romazes Dec 20, 2024
168e375
remove: not used imports
Romazes Dec 20, 2024
e0e6b54
refactor: use negative local id if cloud id is not provided
Romazes Dec 20, 2024
be9d33f
rename: get project id method
Romazes Dec 20, 2024
bb45cfe
refactor: get project id
Romazes Dec 23, 2024
75dad58
refactor: Readme
Romazes Dec 23, 2024
f38c779
feat: set project id always in default configs
Romazes Dec 23, 2024
e2e8c2b
feat: validate config value on empty
Romazes Dec 23, 2024
4c4569a
refactor: description of project-id in Readme
Romazes Dec 23, 2024
d7255de
feat: new 'require_project_id' property in AuthConfiguration
Romazes Dec 24, 2024
81428e7
refactor: carry out prompt import into get_project_id
Romazes Dec 24, 2024
ad54c9a
refactor: remove extra project id from Readme
Romazes Dec 24, 2024
98307de
refactor: use int type implicitly
Romazes Dec 24, 2024
67d879c
fix: underscore in "require-project-id" param
Romazes Dec 24, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor: carry out prompt import into get_project_id
Romazes committed Dec 24, 2024
commit 81428e7c2626393bd56bfb2d330707b7550b7049
3 changes: 2 additions & 1 deletion lean/models/json_module.py
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@
from enum import Enum
from typing import Any, Dict, List, Type

from click import get_current_context, prompt
from click import get_current_context
from click.core import ParameterSource

from lean.components.util.auth0_helper import get_authorization
@@ -182,6 +182,7 @@ def get_project_id(self, default_project_id: int, require_project_id: bool) -> i
:param require_project_id: Flag to determine if prompting is necessary.
:return: A valid project ID.
"""
from click import prompt
project_id = default_project_id
if require_project_id and project_id <= 0:
project_id = prompt("Please enter any cloud project ID to proceed with Auth0 authentication",