Skip to content
This repository has been archived by the owner on Mar 12, 2021. It is now read-only.

Commit

Permalink
simplify basic example
Browse files Browse the repository at this point in the history
  • Loading branch information
RileyMShea committed Jan 23, 2021
1 parent 1143efa commit e009b3a
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions examples/basic.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
#%%
import pandas as pd
import pytz
from dotenv import load_dotenv

from upoly import NY, async_polygon_aggs

load_dotenv()

NY = pytz.timezone("America/New_York")

start = pd.Timestamp("2018-01-01", tz=NY)
Expand All @@ -17,21 +14,3 @@
aapl
#%%
tsla = async_polygon_aggs("TSLA", start, end)

#%%
aapl

#%%
pd.concat([aapl, aapl], ignore_index=False)
#%%
pd.concat([None, None], ignore_index=True)
#%%
# orjson bytes (res.content)
# 1.75 s ± 68.3 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)


# orjson str (res.text)
# 1.71 s ± 37.1 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)

# httpx json
# 2.23 s ± 285 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)

0 comments on commit e009b3a

Please sign in to comment.