Last active 1729055800

CCXT-readme-19.cs Raw
1using ccxt; // importing ccxt
2namespace Project;
3class Project {
4 public async static Task CreateOrder() {
5 var exchange = new Binance();
6 exchange.apiKey = "my api key";
7 exchange.secret = "my secret";
8 // always use the capitalized method (CreateOrder instead of createOrder)
9 var order = await exchange.CreateOrder("BTC/USDT", "limit", "buy", 1, 50);
10 Console.WriteLine("Placed Order, order id: " + order.id);
11 }
12}