diff --git a/zipline/gens/tradesimulation.py b/zipline/gens/tradesimulation.py index 6400a5e6..819b21d6 100644 --- a/zipline/gens/tradesimulation.py +++ b/zipline/gens/tradesimulation.py @@ -1,3 +1,19 @@ +# +# Copyright 2012 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. + + from logbook import Logger, Processor from datetime import datetime diff --git a/zipline/gens/transform.py b/zipline/gens/transform.py index ae355e7e..c9e455a5 100644 --- a/zipline/gens/transform.py +++ b/zipline/gens/transform.py @@ -1,3 +1,19 @@ +# +# Copyright 2012 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. + + """ Generator versions of transforms. """ diff --git a/zipline/gens/utils.py b/zipline/gens/utils.py index 7dc44c57..63aa8197 100644 --- a/zipline/gens/utils.py +++ b/zipline/gens/utils.py @@ -1,3 +1,19 @@ +# +# Copyright 2012 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. + + import pytz import numbers diff --git a/zipline/gens/vwap.py b/zipline/gens/vwap.py index 9d908b46..bf8bad9e 100644 --- a/zipline/gens/vwap.py +++ b/zipline/gens/vwap.py @@ -1,3 +1,19 @@ +# +# Copyright 2012 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. + + from numbers import Number from collections import defaultdict diff --git a/zipline/optimize/__init__.py b/zipline/optimize/__init__.py index cb12f8fe..38f8d1ea 100644 --- a/zipline/optimize/__init__.py +++ b/zipline/optimize/__init__.py @@ -1,3 +1,19 @@ +# +# Copyright 2012 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. + + """ Thomas's parameter optimization library. """ diff --git a/zipline/optimize/algorithms.py b/zipline/optimize/algorithms.py index 5eee6ecd..3f2efe40 100644 --- a/zipline/optimize/algorithms.py +++ b/zipline/optimize/algorithms.py @@ -1,3 +1,19 @@ +# +# Copyright 2012 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. + + from logbook import Logger from zipline.algorithm import TradingAlgorithm diff --git a/zipline/optimize/example.py b/zipline/optimize/example.py index b1aa5e41..cfc9d67d 100644 --- a/zipline/optimize/example.py +++ b/zipline/optimize/example.py @@ -1,3 +1,19 @@ +# +# Copyright 2012 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. + + # WARNING: This file is still work in progress and contains rather # random code snippets. diff --git a/zipline/optimize/factory.py b/zipline/optimize/factory.py index 90d65a17..f8aee5e3 100644 --- a/zipline/optimize/factory.py +++ b/zipline/optimize/factory.py @@ -1,3 +1,19 @@ +# +# Copyright 2012 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. + + """ Factory functions to prepare useful data for optimize tests. diff --git a/zipline/protocol.py b/zipline/protocol.py index 1e9a7cb3..562a18bb 100644 --- a/zipline/protocol.py +++ b/zipline/protocol.py @@ -1,3 +1,19 @@ +# +# Copyright 2012 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. + + from utils.protocol_utils import Enum, ndict, namelookup # Datasource type should completely determine the other fields of a diff --git a/zipline/test_algorithms.py b/zipline/test_algorithms.py index cb49a1ad..5d79499b 100644 --- a/zipline/test_algorithms.py +++ b/zipline/test_algorithms.py @@ -1,3 +1,19 @@ +# +# Copyright 2012 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. + + """ Algorithm Protocol =================== diff --git a/zipline/utils/date_utils.py b/zipline/utils/date_utils.py index 4f8e1e13..50545b0c 100644 --- a/zipline/utils/date_utils.py +++ b/zipline/utils/date_utils.py @@ -1,3 +1,19 @@ +# +# Copyright 2012 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. + + from collections import namedtuple import time diff --git a/zipline/utils/factory.py b/zipline/utils/factory.py index 8b97127f..c446501a 100644 --- a/zipline/utils/factory.py +++ b/zipline/utils/factory.py @@ -1,3 +1,19 @@ +# +# Copyright 2012 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. + + """ Factory functions to prepare useful data for tests. """ diff --git a/zipline/utils/log_utils.py b/zipline/utils/log_utils.py index 102c9a7b..f143cfbc 100644 --- a/zipline/utils/log_utils.py +++ b/zipline/utils/log_utils.py @@ -1,3 +1,19 @@ +# +# Copyright 2012 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. + + import logbook from contextlib import contextmanager diff --git a/zipline/utils/tradingcalendar.py b/zipline/utils/tradingcalendar.py index da58a3bc..ac2c2638 100644 --- a/zipline/utils/tradingcalendar.py +++ b/zipline/utils/tradingcalendar.py @@ -1,3 +1,19 @@ +# +# Copyright 2012 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. + + import pytz from datetime import datetime diff --git a/zipline/version.py b/zipline/version.py index 0244a256..80ee42dc 100644 --- a/zipline/version.py +++ b/zipline/version.py @@ -1,3 +1,19 @@ +# +# Copyright 2012 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. + + BANNER = """ Zipline {version} Released under BSD3