{"action":"created","issue":{"url":"https://api.github.com/repos/joeldg/bowhead/issues/61","repository_url":"https://api.github.com/repos/joeldg/bowhead","labels_url":"https://api.github.com/repos/joeldg/bowhead/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/joeldg/bowhead/issues/61/comments","events_url":"https://api.github.com/repos/joeldg/bowhead/issues/61/events","html_url":"https://github.com/joeldg/bowhead/issues/61","id":277577320,"number":61,"title":"php trader function don't handle crypto decimal price ? ","user":{"login":"vitoo","id":995694,"avatar_url":"https://avatars0.githubusercontent.com/u/995694?v=4","gravatar_id":"","url":"https://api.github.com/users/vitoo","html_url":"https://github.com/vitoo","followers_url":"https://api.github.com/users/vitoo/followers","following_url":"https://api.github.com/users/vitoo/following{/other_user}","gists_url":"https://api.github.com/users/vitoo/gists{/gist_id}","starred_url":"https://api.github.com/users/vitoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vitoo/subscriptions","organizations_url":"https://api.github.com/users/vitoo/orgs","repos_url":"https://api.github.com/users/vitoo/repos","events_url":"https://api.github.com/users/vitoo/events{/privacy}","received_events_url":"https://api.github.com/users/vitoo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-11-28T23:36:44Z","updated_at":"2018-03-05T08:32:36Z","closed_at":"2017-11-29T17:41:34Z","author_association":"NONE","body":"hi,\r\n\r\nIt's  working fine with usd price (ex 1btc = 9800$)\r\n\r\nbut with decimal value like 1 XLM = 0.00000855 btc\r\n\r\nlooks like it doesnt handle decimal value so the ema (or macd) value is always 0 :disappointed: \r\n\r\n\r\n```php \r\n\r\n print_r($data);\r\n\r\n\r\n//output : \r\nArray\r\n(\r\n    [0] => 7.08E-6\r\n    [1] => 7.07E-6\r\n    [2] => 7.04E-6\r\n    [3] => 7.03E-6\r\n    [4] => 6.99E-6\r\n    [5] => 7.01E-6\r\n    [6] => 6.95E-6\r\n    [7] => 6.99E-6\r\n    [8] => 7.05E-6\r\n//   ...\r\n)\r\n\r\n $emaArray = trader_ema($data, $period);\r\n print_r($emaArray); \r\n\r\n Array\r\n(\r\n    [20] => 0\r\n    [21] => 0\r\n    [22] => 0\r\n    [23] => 0\r\n    [24] => 0\r\n    [25] => 0\r\n    [26] => 0\r\n    [27] => 0\r\n    [28] => 0\r\n//   ...\r\n)\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/joeldg/bowhead/issues/comments/370344804","html_url":"https://github.com/joeldg/bowhead/issues/61#issuecomment-370344804","issue_url":"https://api.github.com/repos/joeldg/bowhead/issues/61","id":370344804,"user":{"login":"vitoo","id":995694,"avatar_url":"https://avatars0.githubusercontent.com/u/995694?v=4","gravatar_id":"","url":"https://api.github.com/users/vitoo","html_url":"https://github.com/vitoo","followers_url":"https://api.github.com/users/vitoo/followers","following_url":"https://api.github.com/users/vitoo/following{/other_user}","gists_url":"https://api.github.com/users/vitoo/gists{/gist_id}","starred_url":"https://api.github.com/users/vitoo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vitoo/subscriptions","organizations_url":"https://api.github.com/users/vitoo/orgs","repos_url":"https://api.github.com/users/vitoo/repos","events_url":"https://api.github.com/users/vitoo/events{/privacy}","received_events_url":"https://api.github.com/users/vitoo/received_events","type":"User","site_admin":false},"created_at":"2018-03-05T08:32:36Z","updated_at":"2018-03-05T08:32:36Z","author_association":"NONE","body":"Oooh thanks !"}}
{"actor":{"display_login":"vitoo"}}