-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CCXT Pro Websockets merged with CCXT! #15171
Comments
First of all thanks to all on the hard work here! As a user, the added OSS functionality is much appreciated. I noticed that the API surface has now changed. Whereas before the import scheme was: import * as ccxt from ccxt;
// Do CCXT things Importing CCXT as originally documented the watch functionality is not available. Instead I have to import at the ESMimport { pro as ccxt } from ccxt;
// Do CCXT things CommonJSconst ccxt = require('ccxt').pro;
// Do CCXT things Is the plan here to merge both API interfaces into one? Or is the "pro" entrypoint going to be an ongoing thing? |
@jshcrowthe we're going to add esm support soon #12619 |
thx! |
Thank you! |
@frosty00 I mean less about strict ESM support (as you can emulate that w/ any modern build system these days) and more the specifics of having to explicitly reference Is the plan to make it so someone doing i.e. should the following snippet work? const ccxt = require('ccxt');
async function main() {
const exchange = new ccxt.ftx();
const book = await exchange.watchOrderBook();
console.log(book);
}
main(); And if not, what's the rationale? |
Игорь, спасибо тебе! |
Simple example: const ccxt = require ('ccxt').pro;
(async () => {
const exchange = new ccxt.binance({ enableRateLimit: true })
while (true) {
const orderbook = await exchange.watchOrderBook('ETH/BTC')
console.log (new Date (), orderbook['asks'][0], orderbook['bids'][0])
}
}) () |
I am on PHP 7.4 but the composer.json in the package says it requires PHP 8.1. What requires 8.1 in the ccxt package? |
@pottertech React/Async |
@carlosmiei Thanks, I changed the required block in the ccxt/composer.json file to this:
then did command: composer update And everything seems to be working fine now for PHP 7.4 |
After installing CCXT with the following command: git clone https://github.com/ccxt/ccxt.git --depth 1 I am ready to update CCXT but I am not sure what the command is to do it correctly. Can someone help me out please? |
@pottertech Cloning a source repository is not the correct way to use most open source libraries. Rather, it involves importing the module into your project. How this is done depends on your choice of scripting language. See the wiki install docs. |
Thank you. |
Hey all, are requests to the websocket endpoints "real" event subscriptions (and connections kept open) or are they just single api requests? Wondering why it seems like the connections are closed right after a request / why requests have to be performed one at a time within a loop. Lets use binance for this question, should you need an exchange in particular. And python, should you need the language being used. Thanks! |
Hello @simonblack, |
Thanks a lot! |
Where's the best place to donate? |
@kroitor Thank you so much for make it free for everyone, much appreciated! |
Do all the exchanges in ccxt support WSS? |
@muhammad-rizwan-brainx Not all of them but a significant part do, you can check it here https://github.com/ccxt/ccxt#supported-cryptocurrency-exchange-markets |
Can I transfer funds from one exchange to another with CCXT? |
@muhammad-rizwan-brainx Yes, by using the |
fetchDepositAddress would be used to get the address of account ? I am trying it with kraken exchange but it's not working |
@muhammad-rizwan-brainx Pls open a new issue, this one is not meant for these discussions. |
@Arsam1313 Can you please open a different issue? |
Dear users of CCXT and CCXT Pro!
We are happy to announce the merge of CCXT Pro into CCXT.
CCXT Pro is now a part of the free CCXT package as of version 1.95+
All of the CCXT Pro Websocket functionality is retained in CCXT.
Please, make sure to upgrade your scripts accordingly.
You can find the examples here:
CCXT Wiki: https://github.com/ccxt/ccxt/wiki/
CCXT Manual: https://github.com/ccxt/ccxt/wiki/Manual
CCXT Pro Manual: https://github.com/ccxt/ccxt/wiki/ccxt.pro.manual
All feedback is very welcome and is especially valued during this period of transition.
A word to existing CCXT Pro users: please, ignore the subscription expiry notifications and switch to CCXT. Don't hesitate to reach out to us here on GitHub and in Discord (https://discord.gg/ccxt) in case you have any difficulties migrating or if you have any questions regarding the merge.
Thanks for using CCXT!
Yours faithfully,
The CCXT Dev Team.
The text was updated successfully, but these errors were encountered: