/coinbase-exchange-python

Python interface for Coinbase Exchange

Primary LanguagePython

Coinbase Exchange

Build Status Scrutinizer Code Quality

The un-official Python library for the Coinbase Exchange API.

Note: this library may be subtly broken or buggy. The code is released under the MIT License – please take the following message to heart:

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

In Active Development

  • Public facing (non-authenticated) API completed
  • Private facing (authenticated) API unstarted

Quick Start

The Public API Client

The Coinbase Exchange API has both public and private endpoints. If you're only interested in the public endpoints, you should use a PublicClient.

from cbe import CoinbaseExchange
cbe = CoinbaseExchange()

Public API Methods

cbe.getProducts()
cbe.getProductOrderBook() #defaults level=1
cbe.getProductOrderBook(level=3)
cbe.getProductTicker()
cbe.getProductTrades()
cbe.getProductHistoricRates()
cbe.getProduct24HrStats()
cbe.getCurrencies()
cbe.getTime()