Skip to content

Commit e9fb4ba

Browse files
Update indices-snapshots.py (#431)
Fix bug where we're expecting an array of tickers vs a string.
1 parent 46e3a9c commit e9fb4ba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/rest/indices-snapshots.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
# client = RESTClient("XXXXXX") # hardcoded api_key is used
88
client = RESTClient() # POLYGON_API_KEY environment variable is used
99

10-
snapshot = client.get_snapshot_indices("I:SPX")
10+
tickers = ["I:SPX", "I:DJI", "I:VIX"]
11+
snapshot = client.get_snapshot_indices(tickers)
1112

1213
# print raw values
1314
print(snapshot)

0 commit comments

Comments
 (0)