Skip to content

Instantly share code, notes, and snippets.

@agoops
Created February 2, 2018 20:17
Show Gist options
  • Save agoops/f48799cacb27f491ea43f158ae4d3c48 to your computer and use it in GitHub Desktop.
Save agoops/f48799cacb27f491ea43f158ae4d3c48 to your computer and use it in GitHub Desktop.
python code snippets
gdax_times_trades = []
for msg in gdax_stream_json_msgs:
if msg['type'] == 'trade':
msg_time = pd.to_datetime(msg['time'])
msg_price = float(msg['price'])
gdax_times_trades.append( (msg_time, msg_price) )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment