{"action":"created","issue":{"url":"https://api.github.com/repos/ccxt/ccxt/issues/4367","repository_url":"https://api.github.com/repos/ccxt/ccxt","labels_url":"https://api.github.com/repos/ccxt/ccxt/issues/4367/labels{/name}","comments_url":"https://api.github.com/repos/ccxt/ccxt/issues/4367/comments","events_url":"https://api.github.com/repos/ccxt/ccxt/issues/4367/events","html_url":"https://github.com/ccxt/ccxt/issues/4367","id":393440142,"node_id":"MDU6SXNzdWUzOTM0NDAxNDI=","number":4367,"title":"Binance: Unable to retrive hishtorical data for analysis","user":{"login":"zero-direwolf","id":22725795,"node_id":"MDQ6VXNlcjIyNzI1Nzk1","avatar_url":"https://avatars3.githubusercontent.com/u/22725795?v=4","gravatar_id":"","url":"https://api.github.com/users/zero-direwolf","html_url":"https://github.com/zero-direwolf","followers_url":"https://api.github.com/users/zero-direwolf/followers","following_url":"https://api.github.com/users/zero-direwolf/following{/other_user}","gists_url":"https://api.github.com/users/zero-direwolf/gists{/gist_id}","starred_url":"https://api.github.com/users/zero-direwolf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zero-direwolf/subscriptions","organizations_url":"https://api.github.com/users/zero-direwolf/orgs","repos_url":"https://api.github.com/users/zero-direwolf/repos","events_url":"https://api.github.com/users/zero-direwolf/events{/privacy}","received_events_url":"https://api.github.com/users/zero-direwolf/received_events","type":"User","site_admin":false},"labels":[{"id":604886965,"node_id":"MDU6TGFiZWw2MDQ4ODY5NjU=","url":"https://api.github.com/repos/ccxt/ccxt/labels/duplicate","name":"duplicate","color":"cccccc","default":true},{"id":604886969,"node_id":"MDU6TGFiZWw2MDQ4ODY5Njk=","url":"https://api.github.com/repos/ccxt/ccxt/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":{"login":"kroitor","id":1294454,"node_id":"MDQ6VXNlcjEyOTQ0NTQ=","avatar_url":"https://avatars3.githubusercontent.com/u/1294454?v=4","gravatar_id":"","url":"https://api.github.com/users/kroitor","html_url":"https://github.com/kroitor","followers_url":"https://api.github.com/users/kroitor/followers","following_url":"https://api.github.com/users/kroitor/following{/other_user}","gists_url":"https://api.github.com/users/kroitor/gists{/gist_id}","starred_url":"https://api.github.com/users/kroitor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kroitor/subscriptions","organizations_url":"https://api.github.com/users/kroitor/orgs","repos_url":"https://api.github.com/users/kroitor/repos","events_url":"https://api.github.com/users/kroitor/events{/privacy}","received_events_url":"https://api.github.com/users/kroitor/received_events","type":"User","site_admin":false},"assignees":[{"login":"kroitor","id":1294454,"node_id":"MDQ6VXNlcjEyOTQ0NTQ=","avatar_url":"https://avatars3.githubusercontent.com/u/1294454?v=4","gravatar_id":"","url":"https://api.github.com/users/kroitor","html_url":"https://github.com/kroitor","followers_url":"https://api.github.com/users/kroitor/followers","following_url":"https://api.github.com/users/kroitor/following{/other_user}","gists_url":"https://api.github.com/users/kroitor/gists{/gist_id}","starred_url":"https://api.github.com/users/kroitor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kroitor/subscriptions","organizations_url":"https://api.github.com/users/kroitor/orgs","repos_url":"https://api.github.com/users/kroitor/repos","events_url":"https://api.github.com/users/kroitor/events{/privacy}","received_events_url":"https://api.github.com/users/kroitor/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2018-12-21T12:21:23Z","updated_at":"2018-12-21T20:43:33Z","closed_at":"2018-12-21T20:43:33Z","author_association":"NONE","body":"ATTENTION!!!\r\n\r\nMUST READ THIS BEFORE SUBMITTING ISSUES:\r\n\r\nhttps://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-submit-an-issue\r\n\r\n- OS: Windows\r\n- Programming Language version: Python\r\n- CCXT version: 1.17.94\r\n- Exchange: Binance\r\n- Method: historical data retrival\r\n\r\n```\r\nimport ccxt\r\nimport keys\r\n\r\napi_key, secret_key = keys.keys()\r\n\r\nexchange = ccxt.binance({\r\n    'apiKey': api_key,\r\n    'secret': secret_key,\r\n    'enableRateLimit': True\r\n})\r\n\r\nif exchange.has['fetchOrders']:\r\n    exchange.load_markets()\r\n    since = exchange.milliseconds () - 86400000\r\n    all_orders = []\r\n    while since < exchange.milliseconds():\r\n        symbol = 'BTC/USDT'\r\n        limit = 20\r\n        orders = exchange.fetch_orders(symbol, since, limit)\r\n        \r\n        if len(orders):\r\n            since = orders[len(orders) -1]\r\n            all_orders += orders\r\n        else:\r\n            break\r\n\r\nprint(orders)\r\n\r\n```\r\nno values are returned, unable to figure out where i am going wrong."},"comment":{"url":"https://api.github.com/repos/ccxt/ccxt/issues/comments/449493744","html_url":"https://github.com/ccxt/ccxt/issues/4367#issuecomment-449493744","issue_url":"https://api.github.com/repos/ccxt/ccxt/issues/4367","id":449493744,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0OTQ5Mzc0NA==","user":{"login":"kroitor","id":1294454,"node_id":"MDQ6VXNlcjEyOTQ0NTQ=","avatar_url":"https://avatars3.githubusercontent.com/u/1294454?v=4","gravatar_id":"","url":"https://api.github.com/users/kroitor","html_url":"https://github.com/kroitor","followers_url":"https://api.github.com/users/kroitor/followers","following_url":"https://api.github.com/users/kroitor/following{/other_user}","gists_url":"https://api.github.com/users/kroitor/gists{/gist_id}","starred_url":"https://api.github.com/users/kroitor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kroitor/subscriptions","organizations_url":"https://api.github.com/users/kroitor/orgs","repos_url":"https://api.github.com/users/kroitor/repos","events_url":"https://api.github.com/users/kroitor/events{/privacy}","received_events_url":"https://api.github.com/users/kroitor/received_events","type":"User","site_admin":false},"created_at":"2018-12-21T20:43:33Z","updated_at":"2018-12-21T20:43:33Z","author_association":"MEMBER","body":"> This is a test account, i was planning to load assets once, i had a MVP\r\n\r\nDid you do the orders with it? Because you can't fetch the history of your orders if you have made no orders. `fetchOrders` is used to fetch YOUR existing orders. If you need some other history, then, please, read the Manual first in order to be able to use this library efficiently: \r\n\r\n- https://github.com/ccxt/ccxt/wiki/Manual\r\n\r\n> i am still new to this can you suggest way to pull historical data from binance ?? (say from 2018-01-01 -- 2018-12-01)\r\n\r\nThere's at least a couple of dozens of types of historical data, so it really depends on which type of historical data you're talking about. Anyways, I suggest that you read the entire Manual from top to bottom, because it already has the answers, and everything you might need for a start – most of the methods are explained there."}}
{"actor":{"display_login":"kroitor"}}