coinbase / coinbase-python

DEPRECATED — Coinbase Python API
Apache License 2.0
528 stars 217 forks source link

Set CB-VERSION in the session header #59

Closed johnclause closed 6 years ago

johnclause commented 6 years ago

This prevents a warning message:

UserWarning: Please supply API version (YYYY-MM-DD) as CB-VERSION header (https://developers.coinbase.com/api#versioning) warnings.warn(message, UserWarning)

on requests which do not require authentication. Maybe there is a better way of doing it, but this seems to work.