Last active 1729055800

knox revised this gist 1729055800. Go to revision

1 file changed, 12 insertions

CCXT-readme-19.cs(file created)

@@ -0,0 +1,12 @@
1 + using ccxt; // importing ccxt
2 + namespace Project;
3 + class 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 + }
Newer Older