Skip to Content
Google Cloud Platform for Architects
book

Google Cloud Platform for Architects

by Vitthal Srinivasan, Loonycorn Ravi, Judy Raj
June 2018
Intermediate to advanced
372 pages
8h 44m
English
Packt Publishing
Content preview from Google Cloud Platform for Architects

Analyzing financial time series with BigQuery

Here we will run a time-series analysis on a public dataset called gbpusd which is a curated time series made publicly available with historical data on the exchange rate between the British Pound (GBP) and the US Dollar (USD).

  1. Make a dataset called timeseries using following command on Cloud Shell
bq mk timeseries
  1. Load gbpusd dataset with following command:
bq load timeseries.gbpusd_0114 gs://solutions-public-assets/time-series-master/GBPUSD_2014_01.csv /                            venue:STRING,currencies:STRING,time:TIMESTAMP,bid:FLOAT,ask:FLOAT
  1. Now, run following query:
SELECT FORMAT_UTC_USEC(time) AS time, venue, currencies, time, bid, askFROM  timeseries.gbpusd_0114ORDER BY time ASCLIMIT   1000;
  1. Download the query ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Google Cloud Platform Professional Cloud Architect

Google Cloud Platform Professional Cloud Architect

Victor Dantas
Google Cloud Platform for Developers

Google Cloud Platform for Developers

Ted Hunter, Steven Porter

Publisher Resources

ISBN: 9781788834308Other