Giter Club home page Giter Club logo

Comments (2)

tianfate avatar tianfate commented on August 27, 2024

maybe it can help you :https://github.com/s4w3d0ff/python-poloniex

2016-09-29 8:00 GMT+08:00 Emanuele Cesari [email protected]:

Hello i am a young developer this is my first time with the api of
poloniex, I am developing a python bot for Poloniex , but is all the day
that i try to make a request to get the open order but it fails!!
My code is very similar to your but I dont know, why it dosent works the
request status is 200 but this is the reply:
{'error': 'Invalid command.'}

this is my code:
Returns open orders for a given market

def getOpenOrders(self,url,comand, market):

nonce = int(time.time())
print(comand)
urlrequest = url  + '?apikey=' + self.apiKey +'&command='+comand + '&nonce=' +str(nonce) + '&market=' + str(market)
print(urlrequest)
param =  'command='+comand + 'nonce=' +str(nonce) +str(market)

signature =  hmac.new(self.Secret.encode(),param.encode(), hashlib.sha512).hexdigest()
headers = {
        'Sign':signature,
        'Key': self.apiKey
    }

self.r = requests.post(urlrequest,headers= headers,)
print(self.r)
print(self.r.json())

I think there is problem with the signature but i dont know where.
coudl you help me?

,


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#3, or mute the thread
https://github.com/notifications/unsubscribe-auth/AEMq1lzO4KqvN9mJvcSJKG7schX4bblyks5quv-xgaJpZM4KJcZn
.

from poloniex.

Al13n0 avatar Al13n0 commented on August 27, 2024

still problem with my code :(

from poloniex.

Related Issues (1)

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.