File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,9 @@ def reqmock():
1010
1111
1212def endpoint (path , params = '' , api_version = 'v1' ):
13- return 'https://api.polygon.io/{}{}?{}&apiKey=key-id' .format (api_version , path , params )
13+ return 'https://api.polygon.io/{}{}?{}&apiKey=key-id' .format (
14+ api_version , path , params
15+ )
1416
1517
1618def test_polygon (reqmock ):
@@ -218,8 +220,10 @@ def test_polygon(reqmock):
218220
219221# Historic Aggregates V2
220222 reqmock .get (
221- endpoint ('/aggs/ticker/AAPL/range/1/day/2018-2-2/2018-2-5' ,
222- params = 'unadjusted=False' , api_version = 'v2' ),
223+ endpoint (
224+ '/aggs/ticker/AAPL/range/1/day/2018-2-2/2018-2-5' ,
225+ params = 'unadjusted=False' , api_version = 'v2'
226+ ),
223227 text = '''
224228{
225229 "ticker": "AAPL",
@@ -239,9 +243,11 @@ def test_polygon(reqmock):
239243 ]
240244}''' )
241245
242- aggs = cli .historic_agg_v2 ('AAPL' , 1 , 'day' ,
243- _from = '2018-2-2' ,
244- to = '2018-2-5' )
246+ aggs = cli .historic_agg_v2 (
247+ 'AAPL' , 1 , 'day' ,
248+ _from = '2018-2-2' ,
249+ to = '2018-2-5'
250+ )
245251 assert aggs [0 ].o == 173.15
246252 assert len (aggs ) == 1
247253 assert aggs .df .iloc [0 ].h == 173.21
You can’t perform that action at this time.
0 commit comments