{"action":"created","issue":{"url":"https://api.github.com/repos/quantopian/zipline/issues/1487","repository_url":"https://api.github.com/repos/quantopian/zipline","labels_url":"https://api.github.com/repos/quantopian/zipline/issues/1487/labels{/name}","comments_url":"https://api.github.com/repos/quantopian/zipline/issues/1487/comments","events_url":"https://api.github.com/repos/quantopian/zipline/issues/1487/events","html_url":"https://github.com/quantopian/zipline/pull/1487","id":176987194,"number":1487,"title":"Create in-memory restricted list","user":{"login":"lianga888","id":10404037,"avatar_url":"https://avatars.githubusercontent.com/u/10404037?v=3","gravatar_id":"","url":"https://api.github.com/users/lianga888","html_url":"https://github.com/lianga888","followers_url":"https://api.github.com/users/lianga888/followers","following_url":"https://api.github.com/users/lianga888/following{/other_user}","gists_url":"https://api.github.com/users/lianga888/gists{/gist_id}","starred_url":"https://api.github.com/users/lianga888/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lianga888/subscriptions","organizations_url":"https://api.github.com/users/lianga888/orgs","repos_url":"https://api.github.com/users/lianga888/repos","events_url":"https://api.github.com/users/lianga888/events{/privacy}","received_events_url":"https://api.github.com/users/lianga888/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"ssanderson","id":1588357,"avatar_url":"https://avatars.githubusercontent.com/u/1588357?v=3","gravatar_id":"","url":"https://api.github.com/users/ssanderson","html_url":"https://github.com/ssanderson","followers_url":"https://api.github.com/users/ssanderson/followers","following_url":"https://api.github.com/users/ssanderson/following{/other_user}","gists_url":"https://api.github.com/users/ssanderson/gists{/gist_id}","starred_url":"https://api.github.com/users/ssanderson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssanderson/subscriptions","organizations_url":"https://api.github.com/users/ssanderson/orgs","repos_url":"https://api.github.com/users/ssanderson/repos","events_url":"https://api.github.com/users/ssanderson/events{/privacy}","received_events_url":"https://api.github.com/users/ssanderson/received_events","type":"User","site_admin":false},"assignees":[{"login":"ssanderson","id":1588357,"avatar_url":"https://avatars.githubusercontent.com/u/1588357?v=3","gravatar_id":"","url":"https://api.github.com/users/ssanderson","html_url":"https://github.com/ssanderson","followers_url":"https://api.github.com/users/ssanderson/followers","following_url":"https://api.github.com/users/ssanderson/following{/other_user}","gists_url":"https://api.github.com/users/ssanderson/gists{/gist_id}","starred_url":"https://api.github.com/users/ssanderson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssanderson/subscriptions","organizations_url":"https://api.github.com/users/ssanderson/orgs","repos_url":"https://api.github.com/users/ssanderson/repos","events_url":"https://api.github.com/users/ssanderson/events{/privacy}","received_events_url":"https://api.github.com/users/ssanderson/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2016-09-14T18:42:13Z","updated_at":"2016-09-16T21:01:17Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/quantopian/zipline/pulls/1487","html_url":"https://github.com/quantopian/zipline/pull/1487","diff_url":"https://github.com/quantopian/zipline/pull/1487.diff","patch_url":"https://github.com/quantopian/zipline/pull/1487.patch"},"body":"- Create a restricted list manager that takes in information about restricted sids and stores in memory upon instantiation\r\n- Create a restrictions controller that aggregates and provides restrictions information from multiple restricted list managers\r\n- Make this restrictions controller available to `BarData` so that `can_trade` can take into account these restrictions\r\n- Register each restricted list manager as a trading control using `set_do_not_order_list` so that we may log/fail when we try to order a restricted sid"},"comment":{"url":"https://api.github.com/repos/quantopian/zipline/issues/comments/247708069","html_url":"https://github.com/quantopian/zipline/pull/1487#issuecomment-247708069","issue_url":"https://api.github.com/repos/quantopian/zipline/issues/1487","id":247708069,"user":{"login":"ssanderson","id":1588357,"avatar_url":"https://avatars.githubusercontent.com/u/1588357?v=3","gravatar_id":"","url":"https://api.github.com/users/ssanderson","html_url":"https://github.com/ssanderson","followers_url":"https://api.github.com/users/ssanderson/followers","following_url":"https://api.github.com/users/ssanderson/following{/other_user}","gists_url":"https://api.github.com/users/ssanderson/gists{/gist_id}","starred_url":"https://api.github.com/users/ssanderson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssanderson/subscriptions","organizations_url":"https://api.github.com/users/ssanderson/orgs","repos_url":"https://api.github.com/users/ssanderson/repos","events_url":"https://api.github.com/users/ssanderson/events{/privacy}","received_events_url":"https://api.github.com/users/ssanderson/received_events","type":"User","site_admin":false},"created_at":"2016-09-16T21:01:17Z","updated_at":"2016-09-16T21:01:17Z","body":"> @ssanderson they are in a loop. Is it more meaningful to call them all at once?\r\n\r\nIf they're in a loop, then you're adding a lot of function call overhead to the timings.  In general, I would hope that we can process `can_trade([list, of, stocks])` faster than `for stock in list: can_trade(stock)`, because we have the potential to do work more in batches in the latter case."}}
{"actor":{"display_login":"ssanderson"}}