Git Product home page Git Product logo

bobld / lean-monitor-2 Goto Github PK

View Code? Open in Web Editor NEW
21.0 21.0 10.0 4.5 MB

Windows/Linux/MacOS Desktop App to browse QuantConnect Lean engine's backtest and monitor live performances. Original project https://github.com/mirthestam/lean-monitor

License: MIT License

C# 100.00%
algorithm algorithmic-trading avalonia backtesting csharp lean lean-monitor linux osx quantconnect trading trading-algorithms windows wpf

lean-monitor-2's People

Contributors

bobld avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

lean-monitor-2's Issues

Thank you

The original project had real potential and its good to see that the work continues.

Unable to load sessions from file

I am running Lean locally through Docker (LEAN CLI actually). The simple test backtest is generating two json files:

  1. 1732096832.json
  2. 1732096832-order-events.json

I cannot even open the first one in the lean-monitor GUI because the Open button stays grayed out.
And when I open the second one, it throws an exception on JSON deserialization:

"Cannot deserialize the current JSON array (e.g. [1,2,3]) into type 'QuantConnect.Packets.BacktestResult' because the type requires a JSON object (e.g. {\"name\":\"value\"}) to deserialize correctly.\nTo fix this error either change the JSON to a JSON object (e.g. {\"name\":\"value\"}) or change the deserialized type to an array or a type that implements a collection interface (e.g. ICollection, IList) like List<T> that can be deserialized from a JSON array. JsonArrayAttribute can also be added to the type to force it to deserialize from a JSON array.\nPath '', line 1, position 1." string

Which file am I even supposed to be able to open with the lean-monitor? And how? Thanks!

Setup:

  • macOS
  • latest Lean from GitHub (13059)
  • latest lean-monitor from GitHub

MongoSession - Cannot access a disposed object.

Try a mongo session that fails, and try again

System.Exception
  HResult=0x80131500
  Message=MongoSession.LoadRecentData
  Source=Panoptes.Model.MongoDB
  StackTrace:
   at Panoptes.Model.MongoDB.Sessions.MongoSession.<LoadRecentDataAsync>d__13.MoveNext() in C:\...\Panoptes.Model.MongoDB\Sessions\MongoSession.cs:line 188
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.ConfiguredTaskAwaitable.ConfiguredTaskAwaiter.GetResult()
   at Panoptes.SessionService.<OpenSessionAsync>d__25.MoveNext() in C:\...\Panoptes\SessionService.cs:line 367

  This exception was originally thrown at this call stack:
    MongoDB.Driver.Core.Clusters.Cluster.ThrowIfDisposed()
    MongoDB.Driver.Core.Clusters.Cluster.ThrowIfDisposedOrNotOpen()
    MongoDB.Driver.Core.Clusters.Cluster.SelectServerAsync(MongoDB.Driver.Core.Clusters.ServerSelectors.IServerSelector, System.Threading.CancellationToken)
    System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
    System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
    System.Runtime.CompilerServices.ConfiguredTaskAwaitable<TResult>.ConfiguredTaskAwaiter.GetResult()
    MongoDB.Driver.MongoClient.AreSessionsSupportedAfterServerSelectionAsync(System.Threading.CancellationToken)
    System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
    System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
    ...
    [Call Stack Truncated]

Inner Exception 1:
ObjectDisposedException: Cannot access a disposed object.
ObjectDisposed_ObjectName_Name

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.