{"action":"created","issue":{"url":"https://api.github.com/repos/muhammadmuzzammil1998/BitcoinBot/issues/19","repository_url":"https://api.github.com/repos/muhammadmuzzammil1998/BitcoinBot","labels_url":"https://api.github.com/repos/muhammadmuzzammil1998/BitcoinBot/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/muhammadmuzzammil1998/BitcoinBot/issues/19/comments","events_url":"https://api.github.com/repos/muhammadmuzzammil1998/BitcoinBot/issues/19/events","html_url":"https://github.com/muhammadmuzzammil1998/BitcoinBot/issues/19","id":342451428,"node_id":"MDU6SXNzdWUzNDI0NTE0Mjg=","number":19,"title":"Status Message is delayed or wrong often times","user":{"login":"drstevebrulemd","id":38923985,"node_id":"MDQ6VXNlcjM4OTIzOTg1","avatar_url":"https://avatars0.githubusercontent.com/u/38923985?v=4","gravatar_id":"","url":"https://api.github.com/users/drstevebrulemd","html_url":"https://github.com/drstevebrulemd","followers_url":"https://api.github.com/users/drstevebrulemd/followers","following_url":"https://api.github.com/users/drstevebrulemd/following{/other_user}","gists_url":"https://api.github.com/users/drstevebrulemd/gists{/gist_id}","starred_url":"https://api.github.com/users/drstevebrulemd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drstevebrulemd/subscriptions","organizations_url":"https://api.github.com/users/drstevebrulemd/orgs","repos_url":"https://api.github.com/users/drstevebrulemd/repos","events_url":"https://api.github.com/users/drstevebrulemd/events{/privacy}","received_events_url":"https://api.github.com/users/drstevebrulemd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-18T18:58:12Z","updated_at":"2018-07-19T05:15:03Z","closed_at":null,"author_association":"NONE","body":"Is there any way to pull Bitfinex prices in the status message so they update every minute? I've noted that the price can be off by as much as 5-10 minutes+. For instance, it was showing $7300 for about a good 20 minutes before showing $7500. "},"comment":{"url":"https://api.github.com/repos/muhammadmuzzammil1998/BitcoinBot/issues/comments/406157345","html_url":"https://github.com/muhammadmuzzammil1998/BitcoinBot/issues/19#issuecomment-406157345","issue_url":"https://api.github.com/repos/muhammadmuzzammil1998/BitcoinBot/issues/19","id":406157345,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjE1NzM0NQ==","user":{"login":"muhammadmuzzammil1998","id":12321712,"node_id":"MDQ6VXNlcjEyMzIxNzEy","avatar_url":"https://avatars2.githubusercontent.com/u/12321712?v=4","gravatar_id":"","url":"https://api.github.com/users/muhammadmuzzammil1998","html_url":"https://github.com/muhammadmuzzammil1998","followers_url":"https://api.github.com/users/muhammadmuzzammil1998/followers","following_url":"https://api.github.com/users/muhammadmuzzammil1998/following{/other_user}","gists_url":"https://api.github.com/users/muhammadmuzzammil1998/gists{/gist_id}","starred_url":"https://api.github.com/users/muhammadmuzzammil1998/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/muhammadmuzzammil1998/subscriptions","organizations_url":"https://api.github.com/users/muhammadmuzzammil1998/orgs","repos_url":"https://api.github.com/users/muhammadmuzzammil1998/repos","events_url":"https://api.github.com/users/muhammadmuzzammil1998/events{/privacy}","received_events_url":"https://api.github.com/users/muhammadmuzzammil1998/received_events","type":"User","site_admin":false},"created_at":"2018-07-19T05:15:03Z","updated_at":"2018-07-19T05:15:03Z","author_association":"OWNER","body":"Thank you for taking your time to write to me about the problem.\r\n### Why I am not using Bitfinex API to get prices\r\nThe main reason to not use Bitfinex API is that I don't use Bitfinex. Even if I did, it doesn't support many other real-life currency codes as symbols. The only currency code I could find on [documentation ](https://api.bitfinex.com/v1/symbols) are USD, JPY, GBP, and EUR. Now, I only use USD for the status price but I can't use it as discussed below.\r\n\r\n### Not using Bitfinex for USD and setting it on the status\r\nWell, the reason should be evident -- If a user asks for USD per BTC they are not gonna get the same price as the status and that's bad. Furthermore, I would have to manage two APIs which I can but it would increase the delay in response.\r\n\r\n### Status price update problem\r\nI think I know where the problem is. I think it is because the status update function only gets triggered whenever someone requests for the price. In your case, I think that the last request took place 20 minutes ago.\r\nhttps://github.com/muhammadmuzzammil1998/BitcoinBot/blob/c5a69e4da3f955e52cdea15f9657d8176d7a766b/main.go#L74-L75\r\nI will set it on an interval so the bot requests for the status to get updated every minute in the next release."}}
{"actor":{"display_login":"muhammadmuzzammil1998"}}