Skip to content

Commit

Permalink
ENH: Add Brazil domain
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean Bredeche committed Oct 25, 2018
1 parent 4386301 commit ee32ae4
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions conda/trading-calendars/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{% set name = "trading-calendars" %}
{% set version = "1.4.0" %}
{% set version = "1.4.2" %}
{% set file_ext = "tar.gz" %}
{% set hash_type = "sha256" %}
{% set hash_value = "8fafa96781994ce9ba8f17e98a8c9c62deea3e6d1326ad7943c3fc2adf77a3ae" %}
{% set hash_value = "f7c01b96c13901f9a1fc64fbe2816863bd15f6ea173725a1463dac9a32024c29" %}

package:
name: '{{ name|lower }}'
Expand Down
2 changes: 1 addition & 1 deletion etc/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ empyrical==0.5.0
tables==3.4.3

# For trading calendars
trading-calendars==1.4.0
trading-calendars==1.4.2

# Interface definitions.
python-interface==1.4.0
Expand Down
2 changes: 2 additions & 0 deletions tests/pipeline/test_domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
AT_EQUITIES,
AU_EQUITIES,
BE_EQUITIES,
BR_EQUITIES,
BUILT_IN_DOMAINS,
CA_EQUITIES,
CH_EQUITIES,
Expand Down Expand Up @@ -338,6 +339,7 @@ def test_built_in_equity_calendar_domain_defaults(self):
AT_EQUITIES: datetime.time(8, 15),
AU_EQUITIES: datetime.time(9, 15),
BE_EQUITIES: datetime.time(8, 15),
BR_EQUITIES: datetime.time(9, 15),
CA_EQUITIES: datetime.time(8, 45),
CH_EQUITIES: datetime.time(8, 15),
DE_EQUITIES: datetime.time(8, 15),
Expand Down
1 change: 1 addition & 0 deletions zipline/country.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class CountryCode(object):
AUSTRALIA = code('AUSTRALIA')
AUSTRIA = code('AUSTRIA')
BELGIUM = code('BELGIUM')
BRAZIL = code('BRAZIL')
CANADA = code('CANADA')
DENMARK = code('DENMARK')
FINLAND = code('FINLAND')
Expand Down
2 changes: 2 additions & 0 deletions zipline/pipeline/domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ def __repr__(self):
AT_EQUITIES = EquityCalendarDomain(CountryCode.AUSTRIA, 'XWBO')
AU_EQUITIES = EquityCalendarDomain(CountryCode.AUSTRALIA, 'XASX')
BE_EQUITIES = EquityCalendarDomain(CountryCode.BELGIUM, 'XBRU')
BR_EQUITIES = EquityCalendarDomain(CountryCode.BRAZIL, 'BVMF')
CA_EQUITIES = EquityCalendarDomain(CountryCode.CANADA, 'XTSE')
CH_EQUITIES = EquityCalendarDomain(CountryCode.SWITZERLAND, 'XSWX')
DE_EQUITIES = EquityCalendarDomain(CountryCode.GERMANY, 'XFRA')
Expand All @@ -210,6 +211,7 @@ def __repr__(self):
AT_EQUITIES,
AU_EQUITIES,
BE_EQUITIES,
BR_EQUITIES,
CA_EQUITIES,
CH_EQUITIES,
DE_EQUITIES,
Expand Down

0 comments on commit ee32ae4

Please sign in to comment.