Comments (2)
And just in case you didnt see it I'l post it again.
I have a problem with signature in cex.
Not sure from which side is it.Mine or yours.
Im testing for method: get_myfee/ in cex
This is what i get as a response
{'e': 'get_myfee', 'error': 'Invalid signature', 'ok': 'error'}
Api key and secret should be correctly inputed.I have checked.Might be a problem with computing the signature?
I replied to your question about CEX there on your issue https://github.com/kroitor/ccxt/issues/31. I'll duplicate that here:
You probably forgot to set the uid
. CEX.IO requires that. See API Keys Setup section in the manual.
To test if this is the case with uid, try the following code:
import ccxt
import time
cex = ccxt.cex ({
'apiKey': 'eqCv267WySlu577JnFbGK2RQzIs', # this is standard
'secret': 'pZnbuNEm5eE4W1VRuFQvZEiFCA', # this is also standard
'uid': 'up105393824', # you should set uid as string
})
time.sleep (2)
cex.fetch_balance ()
time.sleep (2)
cex.private_post_get_myfee ()
time.sleep (2)
cex.request ('get_myfee', type='private', method='POST') # same as previous call
{'timestamp': '1500262307', 'username': 'up105393824', 'BTC': {'available': '0.00000000', 'orders': '0.00000000'}, 'USD': {'available': '0.00', 'orders': '0.00'}, 'EUR': {'available': '0.00', 'orders': '0.00'}, 'GBP': {'available': '0.00', 'orders': '0.00'}, 'GHS': {'available': '0.00000000', 'orders': '0.00000000'}, 'RUB': {'available': '0.00', 'orders': '0.00'}, 'ETH': {'available': '0.00000000', 'orders': '0.00000000'}}
{'e': 'get_myfee', 'ok': 'ok', 'data': {'BTC:USD': {'buy': '0.20', 'sell': '0.20', 'buyMaker': '0', 'sellMaker': '0'}, 'BTC:EUR': {'buy': '0.20', 'sell': '0.20', 'buyMaker': '0', 'sellMaker': '0'}, 'BTC:GBP': {'buy': '0.20', 'sell': '0.20', 'buyMaker': '0', 'sellMaker': '0'}, 'GHS:BTC': {'buy': '0', 'sell': '0', 'buyMaker': '0', 'sellMaker': '0'}, 'BTC:RUB': {'buy': '0.20', 'sell': '0.20', 'buyMaker': '0', 'sellMaker': '0'}, 'ETH:BTC': {'buy': '0.20', 'sell': '0.20', 'buyMaker': '0', 'sellMaker': '0'}, 'ETH:USD': {'buy': '0.20', 'sell': '0.20', 'buyMaker': '0', 'sellMaker': '0'}, 'ETH:EUR': {'buy': '0.20', 'sell': '0.20', 'buyMaker': '0', 'sellMaker': '0'}, 'ETH:GBP': {'buy': '0.20', 'sell': '0.20', 'buyMaker': '0', 'sellMaker': '0'}}}
Please, test the code above, then try your credentials and report if everything is ok or not. Thank you very much! Appreciate your help!
The same thing is happening with quadrigacx and its private api
As for QuadrigaCX, fixing it right now, should be ok very soon. Thanks!
from ccxt.
QuadrigaCX should work now, code for testing:
import ccxt
quadrigacx = ccxt.quadrigacx ({
'apiKey': 'jKvWkMqrOj', # this is standard
'secret': 'f65a2e3bf3c73171ee14e389314b2f78', # this is also standard
'uid': '395037', # you should set uid as string literal
})
quadrigacx.fetch_balance ()
{'btc_available': '0.00000000', 'btc_reserved': '0.00000000', 'btc_balance': '0.00000000', 'etc_available': '0.00000000', 'etc_reserved': '0.00000000', 'etc_balance': '0.00000000', 'eth_available': '0.00000000', 'eth_reserved': '0.00000000', 'eth_balance': '0.00000000', 'cad_available': '0.00', 'cad_reserved': '0.00', 'cad_balance': '0.00', 'usd_available': '0.00', 'usd_reserved': '0.00', 'usd_balance': '0.00', 'xau_available': '0.000000', 'xau_reserved': '0.000000', 'xau_balance': '0.000000', 'fee': '0.5000', 'fees': {'btc_cad': '0.5000', 'btc_usd': '0.5000', 'eth_btc': '0.2000', 'eth_cad': '0.5000'}}
Please report if everything is ok.
There might be the same problem with other exchanges, I am testing/fixing where needed.
from ccxt.
Related Issues (20)
- Coroutines example for pro doesn't finish php script in the end HOT 2
- What is execute_and_run ? HOT 3
- bigone api php Invalid request parameters HOT 3
- HitBTC fetch_ohlcv not supporting since parameter HOT 3
- Does CCTX Bybit support trailing-stop? HOT 7
- gate fetch_funding_history since problem HOT 1
- TypeError: can only concatenate str (not "int") to str in fetch_paginated_call_dynamic HOT 1
- Coinbase(Pro) ticker data HOT 6
- MEXC orderbook has wrong limit and 3 dimensions
- fetch_order_book() to upbit doesn't work. HOT 1
- Binance apiKey requires Credentials HOT 4
- Gate resolving wrong market symbol for spot stop orders HOT 1
- In coinbase and okx how do I put StopLoss the key HOT 6
- How do I check that the coins on different exchanges are the same? HOT 2
- Kucoin Issue with private requests HOT 3
- OKX watch_orders fault HOT 1
- bitget) how can use fetch_positions for checking closed position information? HOT 3
- bitget issue with orderbook HOT 2
- Bingx: Bug in Websocket - Unstable when consuming order HOT 5
- [deribit] fetch_tickers only returns tickers for BTC options HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ccxt.