wazirx / wazirx-connector-python Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Hi
I couldn't find myTrades endpoint in python API. There no relavent one in api_maper.json as well.
https://docs.wazirx.com/#my-trades-trade
Regards,
Ajay.
HI I am trying to pull live data for below coins and its throwing 429 error even though i m using 5 seconds sleep time between each crypto. As far as i can find from documentation that there is a limit of 10/sec. I would like to knoe the limits on all of the endpoints. So that i dont spam. Thanks
crypto=['maticinr','manainr','xrpinr','dogeinr','adainr','batinr','chrinr','phainr','enjinr','cotiinr','ctsiinr','dockinr']
def live_price(crypto,iter_error,client):
try:
client = Client()
live_response,live_price=client.send("ticker",{"symbol":crypto})
live_price=pd.DataFrame(live_price,index=range(0,1))
live_price['date_time']=pd.to_datetime(live_price['at'], unit='ms').apply(lambda x: (x+timedelta(minutes = 330)))
live_price.to_sql(crypto, if_exists='append', con=engine)
iter_error=0
time.sleep(5)
except BaseException as e:
iter_error+=1
time.sleep(5)
print(e,crypto)
return iter_error
when I run a test file and I got an error
Traceback (most recent call last): File "e:\Code\wazirx-connector-python-master\wazirx_sapi_client\rest\test.py", line 9, in <module> from wazirx_sapi_client.rest import Client File "e:\Code\wazirx-connector-python-master\wazirx_sapi_client\rest\__init__.py", line 4, in <module> raise BaseException("Python>=3.7 required") BaseException: Python>=3.7 required
When I try to connect to websocket with multiple ticker symbols streams, i m getting connection faild with error code 1009.
Is there any limitation in the number of streams in one webservice connection?
How to generate API Keys to place orders and perform actions on other account specific endpoints.
It is not mentioned anywhere in the docs on how to obtain the keys.
Hello,
I am doing "pip install wazirx_sapi_client" to install the python connector so as to use this in trading bot. But I am getting below error, could you please help me?
ERROR: Could not find a version that satisfies the requirement wazirx_sapi_client (from versions: none)
ERROR: No matching distribution found for wazirx_sapi_client
import requests
import time
api_key = "" #Wazirx Api key
secret_key = "" #Wazirx Api Secrate
ts = int(round(time.time() * 1000))
response = requests.get(f'https://api.wazirx.com/sapi/v1/funds?recvWindow=6000×tamp={ts}&signature={secret_key}', headers = {'X-Api-Key': api_key})
print(response)
showing 401 retuern code please help..!
whats im doing wrong is it correct way????
If you invoke this API with python 3.10 or higher, it throws exception.
Traceback (most recent call last):
File "c:\Users\magic\Documents\app.py", line 1, in
from wazirx_sapi_client.rest import Client
File "c:\Users\magic\Documents\wazirx_sapi_client\rest_init_.py", line 4, in
raise BaseException("Python>=3.7 required")
I see other endpoints like historical_trades, open_orders, all_orders are responding. But funds and accounts are raising exceptions as below
Traceback (most recent call last): File "/Users/digiajay/Documents/Projects/Bitbucket/aj_wazirx/strategy_1.py", line 37, in <module> funds = (client.send('account',{"timestamp": int(time.time() * 1000)})) File "/Users/digiajay/Documents/Projects/Bitbucket/aj_wazirx/wazirx_sapi_client/rest/client.py", line 35, in send raise BaseException("Valid Api Name Required") BaseException: Valid Api Name Required
Give examples of how to:
Sample code snippets will help beginner developers like myself to use Wazirx API easily.
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.