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

Invalid argument for lean cloud status #468

Closed
AlexCatarino opened this issue Jun 26, 2024 · 1 comment
Closed

Invalid argument for lean cloud status #468

AlexCatarino opened this issue Jun 26, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@AlexCatarino
Copy link
Member

I created a project on QC Cloud and deploy it, then I pulled the project from QC Cloud (so it has a projected).

I get Error: Invalid argument

GET https://www.quantconnect.com/api/v2/live/read with data:
{
    "start": 86400,
    "end": 1718889068
}

the parameters are incorrect or the endpoint. The endpoint should probably be /live/list, because if I replace it I get the correct results:

Project id: 18370084
Project name: Pensive Black Sheep
Project url: https://www.quantconnect.com/project/18370084
Live status: Running
Live id: L-027e845c413982f26ce492ce7021d5dd
Live url: https://www.quantconnect.com/project/18370084/live
Brokerage: PaperBrokerage
Launched: 2024-06-20 13:01:21 UTC
@Martin-Molinero Martin-Molinero added the bug Something isn't working label Jun 26, 2024
Marinovsky added a commit to Marinovsky/lean-cli that referenced this issue Jul 12, 2024
Martin-Molinero pushed a commit that referenced this issue Jul 16, 2024
* fix: getting last_portfolio if project_Id is None

* feat: several logging and patches

* fix: (part) cloud status of project command

* First attempt to solve the bug

* Add fix

* address requested changes

* Fix bug

* Fix bugs

* Fix bug #468

* Address requested changes

* fix bug in cloud_last_time

* Fix bugs
- Since you must always choose a data feed when deploying a local live algo, data_provider_live will never be zero.
- Since the date used to determine the last local deployment (in live_utils.py get_last_portfolio) comes from the output directory, we cannot create the output directory before calling get_last_portfolio because then we would get always the local holdings in the get_last_portfolio_method
- The output directory for the previous state file (see _get_last_portfolio) comes with an "L-" prefix

* Address remarks

* Nit change

---------

Co-authored-by: Romazes <[email protected]>
@Martin-Molinero
Copy link
Member

Fixed by #476

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants