Comments (14)
When you expand the SellTimer in the left side menu there's an option with a search icon next to it called Monitor. This is the logging for Azure, does it say anything there to what might be the cause?
from mynt.
2018-05-21 22:01:00.012 +00:00 [Information] Starting processing...
2018-05-21 22:01:00.012 +00:00 [Error] Error on BuyTimer
System.ArgumentNullException: Value cannot be null.
Parameter name: connectionString
at Microsoft.WindowsAzure.Storage.CloudStorageAccount.Parse(String connectionString)
at Mynt.Data.AzureTableStorage.AzureTableStorageDataStore.d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Mynt.Data.AzureTableStorage.AzureTableStorageDataStore.d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Mynt.Core.TradeManagers.PaperTradeManager.d__9.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Mynt.Core.TradeManagers.PaperTradeManager.d__20.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Mynt.Functions.SellTimer.d__1.MoveNext()
System.ArgumentNullException : Value cannot be null.
Parameter name: connectionString
at Microsoft.WindowsAzure.Storage.CloudStorageAccount.Parse(String connectionString)
at async Mynt.Data.AzureTableStorage.AzureTableStorageDataSto…
from mynt.
This suggests that a AzureDataStore is being initialized with an empty connection string. Since you want to use SqlServerDataStore you probably didn't change these lines:
https://github.com/sthewissen/Mynt/blob/master/src/Mynt.AzureFunctions/BuyTimer.cs#L53
https://github.com/sthewissen/Mynt/blob/master/src/Mynt.AzureFunctions/SellTimer.cs#L60
They should use SqlServerDataStore instead of AzureTableStorageDataStore.
from mynt.
I added a reference to Mynt.Data.SqlServer to the Mynt.Funtions project and changed the datastore, but it is giving error.
I did a test using AzureTableStorage and I think it worked.
This is the SellTimer log:
2018-05-22 12: 58: 00.014 + 00: 00 [Information] Starting processing ...
2018-05-22 12: 58: 00.076 +00: 00 [Information] Done ...
But with SqlServer I could not.
I'm also not receiving any messages on the telegram.
Thank you for your help.
from mynt.
This specific error is due to the fact that you're inserting the class name instead of an instance into the SqlServerDataStore. Change that line to:
dataStore: new SqlServerDataStore(new SqlServerOptions()),
from mynt.
Sorry, my mistake...
Now I have these two version errors:
Is it really necessary to use SqlServer or does TableStorage work in the same way?
from mynt.
If TableStorage works for you, give it a shot. Doesn't really matter for how the bot works. This error is solved in develop
I believe. Think it's becoming time again to push develop into master
sometime soon because most of the stuff currently happens on the develop
branch.
from mynt.
I really appreciate your attention, I will continue to use TableStorage.
This is the current BuyTimer log, I think it's okay:
2018-05-22 14: 01: 09.940 +00: 00 [Information] Starting processing ...
2018-05-22 14: 01: 09.972 +00: 00 [Information] Currently 10 traders out of 10 ...
2018-05-22 14: 02: 10: 305 +00: 00 [Warning] Not enough candle data for "TUSDBTC" ...
2018-05-22 14: 03: 57.041 +00: 00 [Information] No trade opportunities found ...
2018-05-22 14: 03: 57.041 +00: 00 [Information] Done ...
On the notifications in the Telegram, do I have to do something besides insert the TelegramBotToken and TelegramChatId in the Application settings?
from mynt.
As long as you have set everything up correctly in Telegram you do not. That means you need to create a bot there and figure out your chat ID but I'm guessing you have that figured out already. The bot only sends messages when it buys or sells something though, so perhaps you haven't gotten a message yet because it hasn't done that yet?
from mynt.
That's correct, I already created and configured the telegram bot correctly, but no purchase or sale has yet been made.
I will transfer a small amount of BTC to test in real environment.
Thank you very much for your attention.
from mynt.
Default it uses the PaperTradeManager
(a few lines above the SQL configuration). This one doesn't need real money to function so you can test without losing money if you want to.
from mynt.
I understood, much better then ...
And if I want to run in real-world environment, just replace PaperTradeManager with LiveTradeManager at BuyTimer.cs and SellTimer.cs?
from mynt.
Totally correct!
from mynt.
Thank you very much, i 'll now close this issue.
from mynt.
Related Issues (20)
- Back tester rework HOT 1
- CancelUnboughtOrders function HOT 3
- Binance transaction fee in BNB bug HOT 1
- Configuration problem HOT 4
- Provide a buying strategy HOT 8
- Add Huobi support HOT 1
- SQL Server not entirely working as planned HOT 5
- PaperTrade dont fill HOT 10
- local installation.. when? HOT 7
- Wiki Update - local installation HOT 3
- Installation (Azure) problem HOT 12
- ... HOT 6
- Mynt.AspNetCore.Host
- Exception thrown when placing an order HOT 4
- Improve trading performance HOT 3
- how to run it as bot HOT 3
- hi , is this project continue updating? HOT 1
- Project from README.md is not accessible HOT 2
- About new project MachinaTrader HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mynt.