Giter Site home page Giter Site logo

Quadrigacx about ccxt HOT 2 CLOSED

ccxt avatar ccxt commented on May 7, 2024
Quadrigacx

from ccxt.

Comments (2)

kroitor avatar kroitor commented on May 7, 2024

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.

kroitor avatar kroitor commented on May 7, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.