Comments (16)
const yunbi = new ccxt.yunbi ({
// apiKey: '8NnHFhLaXt42CqnquZCfCtdkQUq1bfeu89bhj3jm',
// secret: '2rDJ7K7him971O83J7OvJUM2FsxB5Tgz7yzZ0NJy',
apiKey: 'jroBF8uJmFgHi3YKrYeRxSCeL3qtbLabaxcXxzoa',
secret: '7LjTck795Axt1lzLxxbz5qAnbkDxVEVm5wGt8rgp',
verbose: true
})
those 2 pairs are both valid. you can use them as you wish. 👍
from ccxt.
New version work great for me. Thanks very much! :)
from ccxt.
Did you use the keys elsewhere before (in other software maybe)?
from ccxt.
Also, have you read and tried the steps from the Troubleshooting section of the manual?
from ccxt.
i just generate a new pair key/secret. still 401. can you run the same code, i just posted. if it worked in your side, then it must be my problem.
from ccxt.
For yunbi.privateGetOrders () you need to specify a 'market' param like so:
// ...
// orders by product symbol
await yunbi.privateGetOrders ({ market: yunbi.products['BTC/CNY']['id'] })
// or
// orders by product id
await yunbi.privateGetOrders ({ market: 'btccny' })
// ...
This method is not a part of the unified ccxt API, it is a method of the custom Yunbi API, therefore it may need some uncommon params. Please, test it and report, standing by for updates from you.
upd: minor edits.
from ccxt.
var info2 = await yunbi.privateGetMembersMe()
this api don't need any params, right?
can you run this line in your localhost? if it works, then it must be my problem.
from ccxt.
I'm not able to test their private API from where I am now, so we will have to test and return back to it a little later. It may be a bug in the library. Meanwhile, do not use their private API until we fix it. We're still waiting for them to resolve our verification, because we're not residents of China.
It would be very helpful, if you could send us a pair of keys for testing (if you can, remove all permissions, we only need to test the authentication with Yunbi, we don't need your balance, or anything else whatsoever). This way we could then test and help quicker (a fix would be ready in a couple of hours then).
from ccxt.
Thanks! We will get back to you shortly, will fix it asap.
from ccxt.
We're still debugging this, had to contact Yunbi support for their comment. No matter what we do with it, it still does not want to authenticate. Yet I'm sure it's a very basic problem and we will solve it as quickly as possible. Digging deeper now. Will update you on the progress.
from ccxt.
👍
from ccxt.
Ok, we found the problem at last. Get ready for an update. Yunbi will be working since version 1.1.84+. It will be available within 30-40 minutes. Thank you very much for your help!
For those who might encounter the same problem: it is related to the request path, the signature should include the '.json' path format, without it it doesn't want to authenticate (this contradicts their own example, but still).
from ccxt.
I will post code for testing in several minutes here.
from ccxt.
Great! 💯
from ccxt.
Ok, Yunbi is now available again with version 1.1.84+.
We tested it with both of your keypairs (thanks again for that!) :
"use strict";
let ccxt = require ('./ccxt')
let yunbi = ccxt.yunbi ({
"apiKey": "8NnHFhLaXt42CqnquZCfCtdkQUq1bfeu89bhj3jm",
"secret": "2rDJ7K7him971O83J7OvJUM2FsxB5Tgz7yzZ0NJy",
// your keys need this
// if you don't want to redefine nonce, then
// just generate a new keypair and you should be fine now
nonce: function () { return this.milliseconds (); }
})
let yunbi2 = ccxt.yunbi ({
"apiKey": "jroBF8uJmFgHi3YKrYeRxSCeL3qtbLabaxcXxzoa",
"secret": "7LjTck795Axt1lzLxxbz5qAnbkDxVEVm5wGt8rgp",
// an alternative way to have milliseconds nonce
nonce: Date.now,
})
async function test () {
await yunbi.loadProducts ()
console.log (await yunbi.fetchBalance ())
await yunbi2.loadProducts ()
console.log (await yunbi2.fetchBalance ())
}
test ()
We fixed an internal problem in the library, and you also need to override the nonce, if you want to continue using these keys. Please report after you test it, if everything is ok on your side now. Thanks!
from ccxt.
Thank you! Respect!
from ccxt.
Related Issues (20)
- BingX | Edit TakeProfit (or StopLoss) on an position that is already open and has a takeProfit on it.
- BingX | edit_order, i need help HOT 6
- exchange.fetchConvertTradeHistory - error when output has no longer traded tokens - on binance HOT 3
- exchange.fetchConvertTradeHistory - no data if the period is longer than about half a year - on binance HOT 5
- Wrong channel for Watch MyTrades. C# HOT 6
- Internal errors are not visible in my code. C# HOT 5
- bybit fetchBalance not returning any balances HOT 2
- EditOrder behavior for Bitget. C# HOT 4
- Wrong calculations for orders. C# HOT 7
- Get all symbols which currently active on exchange HOT 2
- KUCOIN create stop limit doesnt work properly HOT 5
- MEXC: No fee info in watchMyTrades HOT 1
- ping-pong error HOT 3
- Binance - MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 close listeners added to [TLSSocket] HOT 1
- python static method parse_date() incorrectly parse for some minutes or hour values with leading zeros HOT 2
- KeyError: 'fetchConvertTradeHistory' in exchange.has['fetchConvertTradeHistory'] - on phemex HOT 1
- 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
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.