sthewissen / Mynt

An Azure Functions-based crypto currency trading bot; featuring 10 exchanges, 25 indicators, custom strategy support, backtester and more

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

local installation.. when?

adnan-amanullah opened this issue · comments

Any timeline when local installation instructions going to be released?

Local installation is pretty simple - If you use current development branch:

Open Mynt.AspNetCore.Host/Startup.cs

Replace

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

with:

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

and add reference to Mynt.Data.LiteDB

done :-)

You can also choose another DB implementation, but IMHO LiteDB is the fastest option to get it running up (no dependencies, plain C# without any C++ dll or external DB Server)

A more detailed description of a local approach is being worked on at the moment.

Thanks @LORDofDOOM i tried what you suggested but when i run Host project in iis express. it only shows blank page, to be honest, not sure what should i expect as not getting any error and log is below

2018-05-23 11:36:11.806 +01:00 [Information] User profile is available. Using '"C:\Users\xxxxxxxxx\AppData\Local\ASP.NET\DataProtection-Keys"' as key repository and Windows DPAPI to encrypt keys at rest.
2018-05-23 11:36:12.234 +01:00 [Information] Mynt service is starting.
2018-05-23 11:36:12.445 +01:00 [Information] Request starting HTTP/1.1 DEBUG http://localhost:21580/ 0
2018-05-23 11:36:12.445 +01:00 [Information] Request starting HTTP/1.1 GET http://localhost:21580/
2018-05-23 11:36:12.512 +01:00 [Information] Request finished in 114.8217ms 200
2018-05-23 11:36:12.593 +01:00 [Information] Request finished in 191.3778ms 404

Empty page is normal cuz there is no UI right now. You could proof if type in xxx/api/traders i think so... if you get output it is working.

Ui will coming soon in my PR.

it just shows []
nothing else. m i missing anything in json settings?

@adnanaman: Yes because there are no running trades. Bot works but you need to create a UI or check logfiles/cmd what currently happening. @twixwix has create a PR for a UI