Skip to main content

A python library for the Coinspot API

Project description

Python Coinspot API Library

Build Status

A python library for the Coinspot API.

Copyright (C) 2014 Peter Dyson



Please see for documentation on the CoinSpot API.

NOTE: All requests and responses will be JSON


pip install py-coinspot-api --user


sudo pip install py-coinspot-api


You have two options for configuration, using os environment variables or a yaml file

Option 1





Option 2

The config.yml.sample needs to be copied to config.yml and your unique api key and secret values need to be inserted. Extra options like debug and logging file name can only be configured using the yaml file.

 endpoint: ''
debug: True
logfile: 'coinspot.log'


  • Extend test cases and requirements.

Example Usage

After you have your config.yml in place, test it out

from coinspot import CoinSpot

# initialise the library
client = CoinSpot()

# get the spot prices

# get your coin wallet balances
print client.balances()

# get the last 1000 orders for Dogecoins
print client.orderhistory('DOGE')

# get a list of all the current buy and sell orders
print client.orders('DOGE')

# put an order in to sell 20 Dogecoins at 0.000280 per coin
print client.sell('DOGE', '20', '0.000280')

# Get a quote on buying a billion Dogecoins, with estimation of timeframe
print client.quotebuy('DOGE', 1000000000)

# Donate a craptonne of Dogecoins
# to the author of this library! Much Appreciate!!!
print client.send('DOGE', 'DJrHRxurwQoBUe7r9RsMkMrTxj92wXd5gs', 1000)

Send Dogecoins of appreciation

If you like this software, you can always send cold hard cryptocoin my way

Dogecoin: DJrHRxurwQoBUe7r9RsMkMrTxj92wXd5gs
Bitcoin: 1LybpYphZJqSAxjNFqjfYHB8pWxKcBmFkf

You can do this using the library like this:

# Donate a craptonne of Dogecoins to the author of this library!
# Much Appreciate!!!
print client.send('DOGE', 'DJrHRxurwQoBUe7r9RsMkMrTxj92wXd5gs', 10000)

or send Bitcoins:

# Donate a craptonne of Bitcoins to the author of this library!
print client.send('BTC', '1LybpYphZJqSAxjNFqjfYHB8pWxKcBmFkf', 1)


This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Change Log

  • 0.1.1 Initial Release
  • 0.2.0 Logging Support, Initial Test Cases, Exception Handling, Travis Support, Configuration File

Project details

Release history Release notifications

This version
History Node


History Node


History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
py-coinspot-api-0.2.2.macosx-10.9-x86_64.tar.gz (7.1 kB) Copy SHA256 hash SHA256 Source None Oct 24, 2014
py_coinspot_api-0.2.2-py2.7.egg (9.1 kB) Copy SHA256 hash SHA256 Egg 2.7 Oct 24, 2014
py-coinspot-api-0.2.2.tar.gz (5.7 kB) Copy SHA256 hash SHA256 Source None Oct 24, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page