Created
November 6, 2023 04:42
-
-
Save Kurry/780154249fabb007d3b3951a8519dc7e to your computer and use it in GitHub Desktop.
BQL Python Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bql | |
bq = bql.Service() | |
query = """get(px_last) for('AAPL US Equity') with(dates=range(-1y, 0d), fill='prev')""" | |
data = bql.combined_df(bq.execute(query)).reset_index() | |
print(data) # prints the pandas dataframe |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment