MCPcopy Create free account
hub / github.com/quantopian/zipline / default_fetch_csv_country_code

Method default_fetch_csv_country_code

zipline/algorithm.py:2394–2402  ·  view source on GitHub ↗

Get a default country_code to use for fetch_csv symbol lookups. This will be used to disambiguate symbol lookups for fetch_csv calls if our asset db contains entries with the same ticker spread across multiple

(calendar)

Source from the content-addressed store, hash-verified

2392
2393 @staticmethod
2394 def default_fetch_csv_country_code(calendar):
2395 """
2396 Get a default country_code to use for fetch_csv symbol lookups.
2397
2398 This will be used to disambiguate symbol lookups for fetch_csv calls if
2399 our asset db contains entries with the same ticker spread across
2400 multiple
2401 """
2402 return _DEFAULT_FETCH_CSV_COUNTRY_CODES.get(calendar.name)
2403
2404 ##################
2405 # End Pipeline API

Callers 1

fetch_csvMethod · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected