Giter Club home page Giter Club logo

leantrader's Introduction

Lean trader

Running QuantConnect Lean in a stang-alone Docker container. See Running Lean on your server post by the QuantConnect team.

Note: QuantConnect offers high quality hosting for running trading algorithms. If you do not have any custom automation such as writing files to the disk, uploading logs to cloud buckets etc., consider using their live trading options.

leantrader's People

Contributors

multidis avatar

Watchers

James Cloos avatar  avatar

Forkers

webclinic017

leantrader's Issues

QC server connection exception for Alpaca history provider

Error

20200204 20:11:19.298 ERROR:: Engine.Run(): NATS.Client.NATSNoServersException: Unable to connect to a server.
at NATS.Client.Connection.connect () [0x00063] in :0
at NATS.Client.ConnectionFactory.CreateConnection (NATS.Client.Options opts) [0x00016] in :0
at QuantConnect.Brokerages.Alpaca.Markets.NatsClient.Open () [0x00006] in <1489fdb6a91b4218a0cdfaeff114d361>:0
at QuantConnect.Brokerages.Alpaca.AlpacaBrokerage.Connect () [0x0002e] in <1489fdb6a91b4218a0cdfaeff114d361>:0
at QuantConnect.Lean.Engine.HistoricalData.BrokerageHistoryProvider.Initialize (QuantConnect.Data.HistoryProviderInitializeParameters parameters) [0x00000] in <3f221d0c06f44a7286a87884d7b85d3f>:0
at QuantConnect.Lean.Engine.Engine.Run (QuantConnect.Packets.AlgorithmNodePacket job, QuantConnect.Lean.Engine.AlgorithmManager manager, System.String assemblyPath, QuantConnect.Util.WorkerThread workerThread) [0x00475] in <3f221d0c06f44a7286a87884d7b85d3f>:0

Log fragment

20200204 20:11:12.147 Trace:: Config.GetValue(): algorithm-manager-time-loop-maximum - Using default value: 20
20200204 20:11:12.164 ERROR:: LiveTradingResultHandler.Update(): Algorithm not yet initialized.
20200204 20:11:12.566 Trace:: Loader.TryCreateILAlgorithm(): Loading only the algorithm assembly
20200204 20:11:12.595 Trace:: Loader.TryCreateILAlgorithm(): Loaded LTraderAlgorithm
20200204 20:11:12.631 Trace:: Config.Get(): Configuration key not found. Key: object-store-root - Using default value: ./storage
20200204 20:11:12.632 Trace:: LocalObjectStore.Initialize(): Storage Root: /home/leanu/Lean-master/Launcher/bin/Release/storage/LTraderAlgorithm
20200204 20:11:12.739 Trace:: Config.GetValue(): websocket-log-trace - Using default value: False
20200204 20:11:12.763 Trace:: LiveTradingDataFeed.GetDataQueueHandler(): will use AlpacaBrokerage
20200204 20:11:12.764 Trace:: LiveTradingDataFeed.GetDataChannelProvider(): will use DataChannelProvider
20200204 20:11:12.768 Trace:: BaseDataExchange(CustomDataExchange) Starting...
20200204 20:11:12.768 Trace:: BaseDataExchange(DataQueueExchange) Starting...
20200204 20:11:19.298 ERROR:: Engine.Run(): NATS.Client.NATSNoServersException: Unable to connect to a server.
at NATS.Client.Connection.connect () [0x00063] in :0
at NATS.Client.ConnectionFactory.CreateConnection (NATS.Client.Options opts) [0x00016] in :0
at QuantConnect.Brokerages.Alpaca.Markets.NatsClient.Open () [0x00006] in <1489fdb6a91b4218a0cdfaeff114d361>:0
at QuantConnect.Brokerages.Alpaca.AlpacaBrokerage.Connect () [0x0002e] in <1489fdb6a91b4218a0cdfaeff114d361>:0
at QuantConnect.Lean.Engine.HistoricalData.BrokerageHistoryProvider.Initialize (QuantConnect.Data.HistoryProviderInitializeParameters parameters) [0x00000] in <3f221d0c06f44a7286a87884d7b85d3f>:0
at QuantConnect.Lean.Engine.Engine.Run (QuantConnect.Packets.AlgorithmNodePacket job, QuantConnect.Lean.Engine.AlgorithmManager manager, System.String assemblyPath, QuantConnect.Util.WorkerThread workerThread) [0x00475] in <3f221d0c06f44a7286a87884d7b85d3f>:0
20200204 20:11:19.300 Trace:: JOB HANDLERS:
20200204 20:11:19.300 Trace:: DataFeed: QuantConnect.Lean.Engine.DataFeeds.LiveTradingDataFeed
20200204 20:11:19.300 Trace:: Setup: QuantConnect.Lean.Engine.Setup.BrokerageSetupHandler
20200204 20:11:19.300 Trace:: RealTime: QuantConnect.Lean.Engine.RealTime.LiveTradingRealTimeHandler
20200204 20:11:19.300 Trace:: Results: QuantConnect.Lean.Engine.Results.LiveTradingResultHandler
20200204 20:11:19.300 Trace:: Transactions: QuantConnect.Lean.Engine.TransactionHandlers.BrokerageTransactionHandler
20200204 20:11:19.300 Trace:: Alpha: QuantConnect.Lean.Engine.Alphas.DefaultAlphaHandler
20200204 20:11:19.300 Trace:: ObjectStore: QuantConnect.Lean.Engine.Storage.LocalObjectStore
20200204 20:11:19.300 Trace:: Brokerage: QuantConnect.Brokerages.Alpaca.AlpacaBrokerage
20200204 20:11:19.312 Trace:: Waiting for threads to exit...
20200204 20:11:19.375 Trace:: Config.GetValue(): send-via-api - Using default value: False
20200204 20:11:19.376 ERROR:: Algorithm.Initialize() Error: Unable to connect to a server. Stack Trace: NATS.Client.NATSNoServersException: Unable to connect to a server.
at NATS.Client.Connection.connect () [0x00063] in :0
at NATS.Client.ConnectionFactory.CreateConnection (NATS.Client.Options opts) [0x00016] in :0
at QuantConnect.Brokerages.Alpaca.Markets.NatsClient.Open () [0x00006] in <1489fdb6a91b4218a0cdfaeff114d361>:0
at QuantConnect.Brokerages.Alpaca.AlpacaBrokerage.Connect () [0x0002e] in <1489fdb6a91b4218a0cdfaeff114d361>:0
at QuantConnect.Lean.Engine.HistoricalData.BrokerageHistoryProvider.Initialize (QuantConnect.Data.HistoryProviderInitializeParameters parameters) [0x00000] in <3f221d0c06f44a7286a87884d7b85d3f>:0
at QuantConnect.Lean.Engine.Engine.Run (QuantConnect.Packets.AlgorithmNodePacket job, QuantConnect.Lean.Engine.AlgorithmManager manager, System.String assemblyPath, QuantConnect.Util.WorkerThread workerThread) [0x00475] in <3f221d0c06f44a7286a87884d7b85d3f>:0
NATS.Client.NATSNoServersException: Unable to connect to a server.
at NATS.Client.Connection.connect () [0x00063] in :0
at NATS.Client.ConnectionFactory.CreateConnection (NATS.Client.Options opts) [0x00016] in :0
at QuantConnect.Brokerages.Alpaca.Markets.NatsClient.Open () [0x00006] in <1489fdb6a91b4218a0cdfaeff114d361>:0
at QuantConnect.Brokerages.Alpaca.AlpacaBrokerage.Connect () [0x0002e] in <1489fdb6a91b4218a0cdfaeff114d361>:0
at QuantConnect.Lean.Engine.HistoricalData.BrokerageHistoryProvider.Initialize (QuantConnect.Data.HistoryProviderInitializeParameters parameters) [0x00000] in <3f221d0c06f44a7286a87884d7b85d3f>:0
at QuantConnect.Lean.Engine.Engine.Run (QuantConnect.Packets.AlgorithmNodePacket job, QuantConnect.Lean.Engine.AlgorithmManager manager, System.String assemblyPath, QuantConnect.Util.WorkerThread workerThread) [0x00475] in <3f221d0c06f44a7286a87884d7b85d3f>:0
20200204 20:11:19.376 ERROR:: LiveTradingResultHandler.Update(): Algorithm not yet initialized.
20200204 20:11:19.413 Trace:: Waiting for threads to exit...
20200204 20:11:19.476 Trace:: LiveTradingResultHandler.Run(): Ending Thread...
20200204 20:11:19.514 Trace:: Waiting for threads to exit...

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.