GithubHelp home page GithubHelp logo

coinspot-py's Introduction

coinspot-py

A Python 2 and 3 compatible SDK for the CoinSpot API.

Prerequisites

A compatible version of python-requests can be installed via $ pip install -r requirements.txt.

Usage

>>> from coinspot import CoinSpot
>>> cs = CoinSpot("YOUR_API_KEY", "YOUR_API_SECRET")
>>> cs.latest()
{'status': 'ok', 'prices': {'btc': {'bid': '20200', 'ask': '20649.98', 'last': '20649.98'}, 'ltc': {'bid': '347', 'ask': '362.48', 'last': '347'}, 'doge': {'bid': '0.01721', 'ask': '0.018', 'last': '0.01799'}}}
>>> cs.my_balances()
{'status': 'ok', 'balance': {'aud': 0, 'btc': 0, 'ltc': 0, 'doge': 0, 'ppc': 0, 'wdc': 0, 'xpm': 0, 'max': 0, 'lot': 0, 'qrk': 0, 'moon': 0, 'ftc': 0, 'drk': 0}}
>>> cs.my_coin_deposit('BTC')
{'status': 'ok', 'address': '1JVyVgKg9yNiPatm7c1g3hD4yjZ72xjUpD'}

All available functionality is listed at CoinSpot's API reference. Any available URL listed is accessible through this SDK by replacing slashes with underscores. For example, the URL /my/coin/deposit is accessible via a CoinSpot instance's my_coin_deposit method.

coinspot-py's People

Contributors

clugg avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

net-of-being

coinspot-py's Issues

my_coin_send() function is rubbish

The my_coin_send function supposedly is meant to send x amount of crypto to the given input address, however, according to the coinspot API, no such POST url exists (/my/coin/send) and there is no function within the SDK for sending crypto to another address. I decided to investigate this after repeatedly receiving errors saying my api key is not valid and so I'm not sure why this magical function is here at all. Is this maybe a deprecated API request url?

def my_coin_send(self, cointype, address, amount):
return self._request("my/coin/send", {
"cointype": cointype,
"address": address,
"amount": amount
})

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.