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)
- Coinex ws freezes and does not show an error when the connection is lost HOT 3
- Missing side (buy|sell) in output of "fetchConvertTradeHistory" - binance HOT 1
- Kraken active flag giving false postive HOT 1
- Bybit fetchMyTrades USDT Perpetual not working HOT 2
- HTX exchange not available, but docs state its available. HOT 1
- [native fetch] fallback to native fetch doesn't support proxy agent HOT 3
- Docs: wrong reference URL for binance swap in method fetchLastPrices() HOT 1
- How to check if connection is failed HOT 2
- [zaif] int is divided by str error at custom_nonce function HOT 3
- [Hyperliquid] cannot load_markets in sandbox mode HOT 2
- load_leverage_brackets returns auth error HOT 4
- Bybit: "margin" property for markets is always undefined HOT 2
- Bybit: create/amend/cancel order implementation on new websocket API HOT 4
- AscendEX account closure without refund HOT 5
- Issue with too many subscriptions using watch_tickers() HOT 9
- \Exchange::network_id_to_code(): Argument #1 ($networkId) must be of type string, null given, called in /home/cssoftdemo/public_html/vendor/ccxt/ccxt/php/kucoin.php on line 3332 HOT 2
- Bybit: cancelOrderWs results in permission denied HOT 4
- watch_ohlcv() really not return error when disable internet connection HOT 2
- watch status for specific order HOT 1
- Bybit withdraw issue. HOT 13
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.