sthewissen / Mynt

An Azure Functions-based crypto currency trading bot; featuring 10 exchanges, 25 indicators, custom strategy support, backtester and more
BSD 3-Clause "New" or "Revised" License
237 stars 129 forks source link

LiteDB support #62

Closed LORDofDOOM closed 6 years ago

LORDofDOOM commented 6 years ago

LiteDB is a faster embedded NoSQL alternative to SQLite.

Pure C# - no binary blobs or database server needed -> Useful to get Mynt fast running up

To use add reference to Mynt.Data.LiteDB in Mynt.AspNetCore.Host and change /src/Mynt.AspNetCore.Host/Startup.cs

from: .AddSingleton<IDataStore, AzureTableStorageDataStore>() .AddSingleton(i => Configuration.GetSection("AzureTableStorageOptions").Get()) // TODO

to: .AddSingleton<IDataStore, LiteDBDataStore>() .AddSingleton(i => Configuration.GetSection("LiteDBOptions").Get())

To check database open src/Mynt.AspNetCore.Host/Mynt.db with e.g. https://github.com/JosefNemec/LiteDbExplorer/releases