Coder Social home page Coder Social logo

python-bittrex's People

Contributors

jdnixx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

python-bittrex's Issues

cant put limitbuy

capture fun5thdec
python code script doesn't show any error code but still limit order are not getting to the exchanges.
anybody can help there.....i mean it doesn't appear in order book

GetBalance TypeError

I'm calling api.getbalance('BTC') but it complains saying:

hmac.py", line 144, in new
return HMAC(key, msg, digestmod)
raise TypeError("key: expected bytes or bytearray, but got %r" % type(key).name)
TypeError: key: expected bytes or bytearray, but got 'str'

I've tried changing 'BTC' to bytes with:
x = 'BTC'.encode() and passing that in but same error. Any help would be appreciated.

TypeError: The JSON Object must be str, not bytes

Any Idea how to fix this?

 File "trade.py", line 19, in <module>
    ethereumsummary = api.getmarketsummary(market)
  File "/home/user/Desktop/Projects/Bots/python-bittrex/bittrex/test/bittrex.py", line 62, in getmarketsummary
    return self.query('getmarketsummary', {'market': market})
  File "/home/user/Desktop/Projects/Bots/python-bittrex/bittrex/test/bittrex.py", line 41, in query
    response = json.loads(urllib.request.urlopen(req).read())
  File "/usr/lib/python3.4/json/__init__.py", line 312, in loads
    s.__class__.__name__))
TypeError: the JSON object must be str, not 'bytes'

INVALID_PERMISSION

I can not make changes because of the INVALID_PERMISSION error. Has anyone had this problem?

Hey there anyone having SSL errors like this?

urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1056)>

THIS ERROR COMES OUT BY RUNING ANY REQUEST LIKE THIS:
dogesummary = api.getmarketsummary(market)

syntax error

File "example.py", line 20
print 'The price for {0} is {1:.8f} {2}.'.format(currency, dogeprice, trade)
^
SyntaxError: invalid syntax

Help Getting market history between two dates

Hi,

Please,

How can I use : getmarkethistory to get history prices for many pairs between two dates ?

Thanks

def getmarkethistory(self, market, count=20):
return self.query('getmarkethistory', {'market': market, 'count': count})

Listening to response

Hey,
Would you have an example of the most efficient way of listening to a response from any of the functions? For eg. buylimitorder

Getting an error trying to initialize the library

I'm getting the following error:
TypeError: 'module' object is not callable

Not doing anything special yet, just trying to connect to Bittrex like so:

#!/usr/bin/env python
from bittrex import bittrex

api = bittrex(api_key, api_secret)

convert string to pandas dataframe

I have this code:

import requests
import json as JSON
import pandas as pd

item = "BTC-LTC"
url = "https://bittrex.com/Api/v2.0/pub/market/GetTicks?marketName="+item+"&tickInterval=fiveMin"
headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36'}
response = requests.get(url, headers=headers)
print (response.content)

this is the result:

{"success":true,"message":"","result":[{"O":0.00884499,"H":0.00884499,"L":0.00884499,"C":0.00884499,"V":4.93801966,"T":"2019-01-13T02:45:00","BV":0.04367673},{"O":0.00884499,"H":0.00884499,"L":0.00884499,"C":0.00884499,"V":2.06198034,"T":"2019-01-13T02:50:00","BV":0.01823818},{"O":0.00886499,"H":0.00887511,"L":0.00886499,"C":0.00887511,"V":7.10660996,"T":"2019-01-13T02:55:00","BV":0.06300412},

how do i convert this string to json format or pandas dataframe for later use ?
notice that this is a response<200> from html and give me a string, and i neet to conver it to a python dict JSON OR PANDAS

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.