C# Implementation of bitfinex
Clone or download
Latest commit 4c707e0 Sep 26, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
BitfinexApi clean Jan 31, 2014
BitfinexApi.sln initial commit of the project Jan 31, 2014
BitfinexApi.suo clean Jan 31, 2014
LICENSE Create LICENSE Sep 25, 2018
README.md Add files via upload May 7, 2017



C# Implementation of Bitfinex trade API

Author : Julien Chanaud julien.chanaud[at]supinfo[dot]com


string key = "your_key"; string secret = "your_secret";

BitfinexApiV1 api = new BitfinexApiV1(key, secret);

BalancesResponse bal = api.GetBalances();

NewOrderResponse buy = api.ExecuteBuyOrderBTC(0.01M, 100.00M, OrderExchange.All, OrderType.MarginLimit);

NewOrderResponse sell = api.ExecuteSellOrderBTC(0.01M, 1000M, OrderExchange.All, OrderType.MarginLimit);

int order_id = int.Parse(buy.order_id);

OrderStatusResponse buyStatus = api.GetOrderStatus(order_id);

CancelOrderResponse cancel = api.CancelOrder(order_id);

ActiveOrdersResponse orders = api.GetActiveOrders();

ActivePositionsResponse positions = api.GetActivePositions();