Skip to content

Instantly share code, notes, and snippets.

@Kurry
Created November 6, 2023 04:42
Show Gist options
  • Save Kurry/780154249fabb007d3b3951a8519dc7e to your computer and use it in GitHub Desktop.
Save Kurry/780154249fabb007d3b3951a8519dc7e to your computer and use it in GitHub Desktop.
BQL Python Example
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