mirror of
https://github.com/wassname/catalyst.git
synced 2026-06-30 13:10:49 +08:00
e5b5023d42
Moved from the `lazy-mainline` branch, https://github.com/quantopian/zipline/pull/858 The intent of this patch to provide the basic class and readers interfaces, developed on that branch, so that the use of creating the object and opening paths etc. can be tested internally. Additional changes beyond the lazy-mainline branch, addition of future minute reader, and daily bar reader. Also allow an argument of the future_daily_reader, though no such reader yet exists. It may be that future and equity readers share an interface, and a further improvement would be providing an abstract base class. co-author: @jbredeche <jean@quantopian.com>
28 lines
846 B
Python
28 lines
846 B
Python
# Copyright 2015 Quantopian, Inc.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
|
|
class FutureDailyReader(object):
|
|
"""
|
|
Stubbed out. Currently unimplemented.
|
|
"""
|
|
pass
|
|
|
|
|
|
class FutureMinuteReader(object):
|
|
|
|
def __init__(self, rootdir, sid_path_func=None):
|
|
self.rootdir = rootdir
|
|
self.sid_path_func = sid_path_func
|