Giter VIP home page Giter VIP logo

Comments (14)

sthewissen avatar sthewissen commented on May 29, 2024

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.

raphaelpessanha avatar raphaelpessanha commented on May 29, 2024

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.

sthewissen avatar sthewissen commented on May 29, 2024

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.

raphaelpessanha avatar raphaelpessanha commented on May 29, 2024

I added a reference to Mynt.Data.SqlServer to the Mynt.Funtions project and changed the datastore, but it is giving error.

sql_server_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.

sthewissen avatar sthewissen commented on May 29, 2024

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.

raphaelpessanha avatar raphaelpessanha commented on May 29, 2024

Sorry, my mistake...
Now I have these two version errors:

sql_server_error2

Is it really necessary to use SqlServer or does TableStorage work in the same way?

from mynt.

sthewissen avatar sthewissen commented on May 29, 2024

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.

raphaelpessanha avatar raphaelpessanha commented on May 29, 2024

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.

sthewissen avatar sthewissen commented on May 29, 2024

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.

raphaelpessanha avatar raphaelpessanha commented on May 29, 2024

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.

sthewissen avatar sthewissen commented on May 29, 2024

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.

raphaelpessanha avatar raphaelpessanha commented on May 29, 2024

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.

sthewissen avatar sthewissen commented on May 29, 2024

Totally correct!

from mynt.

raphaelpessanha avatar raphaelpessanha commented on May 29, 2024

Thank you very much, i 'll now close this issue.

from mynt.

Related Issues (20)

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.