Skip to content
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 Dotnet for C# #17953

Open
kroitor opened this issue May 18, 2023 · 2 comments
Open

CCXT Dotnet for C# #17953

kroitor opened this issue May 18, 2023 · 2 comments

Comments

@kroitor
Copy link
Member

kroitor commented May 18, 2023

Hello, CCXT community!

We're excited to announce that as of 4.2.34 we merged the C#/.net version into master and released a stable version with WebSockets capabilities. It works very similarly to the other languages.

Please make sure you use the capitalized version of the unified method (CreateOrder instead of createOrder, the latter is not typed)

Package: https://www.nuget.org/packages/ccxt/

Examples:

using ccxt;
// REST
        var exchange = new ccxt.binance(new Dictionary<string, object>() {
            { "apiKey", "MY_API_KEY" },
            { "secret", "MY_SECRET" },
        });
        var order = await exchange.CreateOrder("LTC/USDT", "limit", "buy", 1, 50);
        var orderId = order.id;
        Console.WriteLine($"Order Id: {orderId}");
using ccxt.pro;
// WS
        var binance = new ccxt.pro.binance(new Dictionary<string, object>() { });
        var symbols = new List<string>() { "BTC/USDT", "ETH/USDT", "DOGE/USDT" };
        while (true)
        {
            var trades = await binance.WatchTradesForSymbols(symbols);
        }
    }

You can check some examples here: https://github.com/ccxt/ccxt/tree/master/examples/cs/examples

Thank you for using CCXT!

Yours, the CCXT Dev Team

Discord Telegram Telegram Twitter Follow

@infrastructure-finvest-global

Hi I wanted to ask does this include ccxt.pro

@carlosmiei
Copy link
Collaborator

Hi I wanted to ask does this include ccxt.pro

@infrastructure-finvest-global It does now, please read the updated announcement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment