All Projects → ericsomdahl → Python Bittrex

ericsomdahl / Python Bittrex

Licence: mit
Python bindings for bittrex

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Python Bittrex

Algotrading
Algorithmic trading framework for cryptocurrencies.
Stars: ✭ 249 (-58.57%)
Mutual labels:  trading-bot, cryptocurrency, cryptocurrency-exchanges, trading-api, trading
Cryptotik
deprecated
Stars: ✭ 78 (-87.02%)
Mutual labels:  cryptocurrency, cryptocurrency-exchanges, trading-api, bittrex
Bxbot
A simple Bitcoin trading bot written in Java.
Stars: ✭ 515 (-14.31%)
Mutual labels:  trading-bot, cryptocurrency, trading-api, trading
crypto-database
Database for crypto data, supporting several exchanges. Can be used for TA, bots, backtest, realtime trading, etc.
Stars: ✭ 72 (-88.02%)
Mutual labels:  trading, trading-bot, bittrex, cryptocurrency-exchanges
Gekko Strategies
Strategies to Gekko trading bot with backtests results and some useful tools.
Stars: ✭ 1,022 (+70.05%)
Mutual labels:  trading-bot, cryptocurrency, cryptocurrency-exchanges, trading
Poloniex
Poloniex python API client for humans
Stars: ✭ 71 (-88.19%)
Mutual labels:  trading-bot, cryptocurrency, trading-api, trading
Kelp
Kelp is a free and open-source trading bot for the Stellar DEX and 100+ centralized exchanges
Stars: ✭ 580 (-3.49%)
Mutual labels:  trading-bot, cryptocurrency, trading-api, trading
Tribeca
A high frequency, market making cryptocurrency trading platform in node.js
Stars: ✭ 3,646 (+506.66%)
Mutual labels:  trading-bot, cryptocurrency, trading
ForEx
Using ML to create a ForEx trader to invest my personal finances to get rid of student debt
Stars: ✭ 17 (-97.17%)
Mutual labels:  trading, trading-bot, trading-api
Wolfbot
Crypto currency trading bot written in TypeScript for NodeJS
Stars: ✭ 335 (-44.26%)
Mutual labels:  trading-bot, cryptocurrency, trading
Golang Crypto Trading Bot
A golang implementation of a console-based trading bot for cryptocurrency exchanges
Stars: ✭ 475 (-20.97%)
Mutual labels:  trading-bot, cryptocurrency-exchanges, bittrex
Crypto Exchanges Gateway
Your gateway to the world of crypto !
Stars: ✭ 343 (-42.93%)
Mutual labels:  cryptocurrency, trading, bittrex
binance-downloader
Python tool to download Binance Candlestick (k-line) data from REST API
Stars: ✭ 44 (-92.68%)
Mutual labels:  trading, trading-bot, cryptocurrency-exchanges
Bybit-Auto-Trading-Bot-Ordes-placed-via-TradingView-Webhook
Python based Trading Bot that uses TradingView.com webhook JSON alerts to place orders(buy/sell/close/manage positions/TP/SL/TS etc.) on Bybit.com. Hire me directly here https://www.freelancer.com/u/Beannsofts for any assistance
Stars: ✭ 235 (-60.9%)
Mutual labels:  trading, trading-bot, cryptocurrency-exchanges
Crypto Trading Bot
Automated Bittrex crypto-currency technical analysis and trading tool
Stars: ✭ 251 (-58.24%)
Mutual labels:  trading-bot, trading, bittrex
quick trade
convenient script for trading with python.
Stars: ✭ 63 (-89.52%)
Mutual labels:  trading, trading-bot, cryptocurrency-exchanges
rockfish
Rockfish is an arbitrage bot for the Stellar Decentralized Exchange (SDEX)
Stars: ✭ 58 (-90.35%)
Mutual labels:  trading, trading-bot, cryptocurrency-exchanges
bybit-api
Node.js connector for the Bybit APIs and WebSockets, with TypeScript & browser support.
Stars: ✭ 69 (-88.52%)
Mutual labels:  trading, trading-bot, cryptocurrency-exchanges
tumbleweed gdax
Prototype market maker specialized to trade on CoinbasePro
Stars: ✭ 41 (-93.18%)
Mutual labels:  trading, trading-bot, cryptocurrency-exchanges
Python Poloniex
Poloniex API wrapper for Python 2.7 & 3
Stars: ✭ 557 (-7.32%)
Mutual labels:  cryptocurrency, trading-api, trading

python-bittrex

Build Status PyPI version

Python bindings for bittrex. I am Not associated -- use at your own risk, etc.

Installation

for most recent stable release

pip install python-bittrex

for bleeding edge development

pip install git+https://github.com/ericsomdahl/python-bittrex.git

API Documentation

API 1.1 is considered stable

Official API Documentation

API 2.0 is BETA, use at your own risk

Unofficial 2.0 API Documentation - The golang guys have been diligently following the rapid changes to the 2.0 Beta, but use at your own risk.

Example Usage for Bittrex API

from bittrex.bittrex import Bittrex, API_V2_0

my_bittrex = Bittrex(None, None, api_version=API_V2_0)  # or defaulting to v1.1 as Bittrex(None, None)
my_bittrex.get_markets()

This call to get_markets returns an object such as the following:

{'success': True, 'message': '', 'result': [{'MarketCurrency': 'LTC', ...

API_V2_0 and API_V1_1 are constants that can be imported from Bittrex.

To access account methods, an API key for your account is required and can be generated on the Settings then API Keys page. Make sure you save the secret, as it will not be visible after navigating away from the page.

from bittrex.bittrex import *

my_bittrex = Bittrex("<my_api_key>", "<my_api_secret>", api_version="<API_V1_1> or <API_V2_0>")

my_bittrex.get_balance('ETH')

This call to get_balance returns an object such as the following:

{'success': True, 
 'message': '',
 'result': {'Currency': 'ETH', 'Balance': 0.0, 'Available': 0.0, 
            'Pending': 0.0, 'CryptoAddress': None}
}

v1.1 constants of interest:

BUY_ORDERBOOK = 'buy'
SELL_ORDERBOOK = 'sell'
BOTH_ORDERBOOK = 'both'

v2.0 constants of interest

These are used by get_candles()

TICKINTERVAL_ONEMIN = 'oneMin'
TICKINTERVAL_FIVEMIN = 'fiveMin'
TICKINTERVAL_HOUR = 'hour'
TICKINTERVAL_THIRTYMIN = 'thirtyMin'
TICKINTERVAL_DAY = 'Day'

these are used by trade_sell() and trade_buy()

ORDERTYPE_LIMIT = 'LIMIT'
ORDERTYPE_MARKET = 'MARKET'

TIMEINEFFECT_GOOD_TIL_CANCELLED = 'GOOD_TIL_CANCELLED'
TIMEINEFFECT_IMMEDIATE_OR_CANCEL = 'IMMEDIATE_OR_CANCEL'
TIMEINEFFECT_FILL_OR_KILL = 'FILL_OR_KILL'

CONDITIONTYPE_NONE = 'NONE'
CONDITIONTYPE_GREATER_THAN = 'GREATER_THAN'
CONDITIONTYPE_LESS_THAN = 'LESS_THAN'
CONDITIONTYPE_STOP_LOSS_FIXED = 'STOP_LOSS_FIXED'
CONDITIONTYPE_STOP_LOSS_PERCENTAGE = 'STOP_LOSS_PERCENTAGE'

Testing

In order to run the integration tests, a file called "secrets.json" must be added to the test folder. Structure it as follows, adding your API keys:

{
  "key": "mykey",
  "secret": "mysecret"
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].