Robot making cash on Poloniex
lra / poloniex Goto Github PK
View Code? Open in Web Editor NEWRobot making cash on Poloniex
Robot making cash on Poloniex
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:
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?
,
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.