Code Monkey home page Code Monkey logo

pythonbittrex's Introduction

pythonbittrex

A python wrapper for the bittrex.com api. Under developement.

Overview

A simple wrapper for the bittrex API. Which can be used to build trading bots or as a simple terminal ticker using the built in command line runner.

Quickstart

To get started quickey with the module, install it and run using the simple command line runner:

python setup.py install
watch 'bittrex getticker btc-doge| python -m json.tool'

API KEYS

To enable the usage of private API methods an ini style file is required with the folling format:

[bittrex]
key=bittrex_api_key
secret=bittrex_api_secret

By default pythonbittrex witll look for a .bittrex.ini file in the current users home directory. An alternative location for this file can be specified by setting an environment variable BITTREX_KEY_FILE which points to the full path of the file.

NOTE: Your bittex key file contains sensitive information so restrictive permissions should be set for the file:

chmod 600 ~/.bittrex.ini

pythonbittrex will print a warning if this file doesn't exists.

Usage

To use the API client in your own scripts:

from bittrex import BittrexAPI
api = BittrexAPI(apt_key=key, api_secret=secret)
data = api.getopenorders()

By default all return values are the Python dict type. To get raw JSON response pass raw=True to the BittrexAPI constructor.

pythonbittrex's People

Contributors

justinfay avatar

Watchers

James Cloos avatar B. Zach avatar  avatar

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.