hollaex / hollaex-node-lib Goto Github PK
View Code? Open in Web Editor NEWHollaEx crypto exchange nodejs library
License: MIT License
HollaEx crypto exchange nodejs library
License: MIT License
Hello,
I try to access private API data from Exir platform, which ist a derivate of hollaex. Could you please help me to find, what I
do wrong with my aproach with Python 3.
If I run this, I get the msg "Access Denied: Invalid API Signature
" --> something is wrong with my api-signature
the documentation of Exir API is:
https://apidocs.exir.io/#introduction
Thank you
here an example code:
import time
import json
import hmac
import hashlib
import requests
from urllib.parse import urljoin, urlencode
API_KEY = '65e...'
SECRET_KEY = '3c3...'
BASE_URL = 'https://api.exir.io'
timestamp = str(int(time.time()+10))
headers = {
'api-key': API_KEY,
'api-expires': timestamp
}
PATH='/v1/user/orders'
params = {"symbol":"btc-irt"}
url = urljoin(BASE_URL, PATH)
string = 'GET/v1/user/orders'+timestamp+str(params)
print(string)
headers['api-signature'] = hmac.new(SECRET_KEY.encode('utf-8'), string.encode('utf-8'), hashlib.sha256).hexdigest()
r = requests.get(url, headers=headers, params=params)
data = r.json()
print(json.dumps(data, indent=2))
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.