BitMEX.IO 1.0.0

Package Description

There is a newer version of this package available.
See the version list below for details.
Install-Package BitMEX.IO -Version 1.0.0
dotnet add package BitMEX.IO --version 1.0.0
<PackageReference Include="BitMEX.IO" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BitMEX.IO --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Wrapper for BitMEX.com API

Example:
Using BitMEX.IO
// Initialize
public static string bitmexKey = "ApiKey";
public static string bitmexSecret = "SecretKey";
BitmexApi bitmex = new BitmexApi(bitmexKey, bitmexSecret,"mainnet");

//Using
//GET
var orders = bitmex.GetOrders("XBTUSD");//RETURN JSON - ALL TYPES ARE JUST PREDEFINED IN CLASS
var positions = bitmex.GetPositions("ETHXBT");//RETURN JSON - ALL TYPES ARE JUST PREDEFINED IN CLASS
var orderbook = bitmex.GetOrderBook("XBt", 25);//RETURN JSON - ALL TYPES ARE JUST PREDEFINED IN CLASS
var apiKey = bitmex.GetApiKey();//RETURN JSON
var depositAddress = bitmex.MyDeopsitAddress();//RETURN string BTC_ADDRESS
var marginBalance = bitmex.MarginBalance();//RETURN string BTC
var walletBalance = bitmex.WalletBalance();//RETURN string BTC
var avalaibleBalance = bitmex.AvalaibleBalance();//RETURN string BTC

//POST
bitmex.PostOrderLimit("XBTUSD", "Buy", "1", "5000");
bitmex.PostOrderMarket("XBTUSD", "Buy", "1");
bitmex.PostOrderStopMarket("XBTUSD", "Sell", "1", "9000");
bitmex.PostOrderStopLimit("XBTUSD", "Buy", "1", "13000", "9000");
bitmex.PostOrderTakeProfitLimit("XBTUSD", "Buy", "1", "13000", "12000");
bitmex.PostOrderTakeProfitMarket("XBTUSD", "Buy", "1", "13000");
bitmex.ClosePosition("XBTUSD", "10000");
bitmex.DeleteAllOrders();
bitmex.DeleteOrderByID("Order_id_from_GetOrders_first_columns");
bitmex.PostLeverage("XBTUSD", "20");
bitmex.TransferMargin("XBTUSD", "150000");
bitmex.Withdrawal_Request("150000", "n43Ydq8NHrYVGxCk1AHP8ofFQ8j8w3LvSB", "google_auth_token");//API KEYS MUST HAVE A PERMISSION
bitmex.Withdrawal_Confirm("google_auth_token");//API KEYS MUST HAVE A PERMISSION

//Deserialize JSON example
var orders_ = JsonConvert.DeserializeObject<Orders[]>(orders); //All types are predefined in Bimex.IO class

Predefinet types:
<OrderBookItem[]>
<Positions[]>
<Orders[]>
<Wallet[]>

All for free before 15 September 2019

Wrapper for BitMEX.com API

Example:
Using BitMEX.IO
// Initialize
public static string bitmexKey = "ApiKey";
public static string bitmexSecret = "SecretKey";
BitmexApi bitmex = new BitmexApi(bitmexKey, bitmexSecret,"mainnet");

//Using
//GET
var orders = bitmex.GetOrders("XBTUSD");//RETURN JSON - ALL TYPES ARE JUST PREDEFINED IN CLASS
var positions = bitmex.GetPositions("ETHXBT");//RETURN JSON - ALL TYPES ARE JUST PREDEFINED IN CLASS
var orderbook = bitmex.GetOrderBook("XBt", 25);//RETURN JSON - ALL TYPES ARE JUST PREDEFINED IN CLASS
var apiKey = bitmex.GetApiKey();//RETURN JSON
var depositAddress = bitmex.MyDeopsitAddress();//RETURN string BTC_ADDRESS
var marginBalance = bitmex.MarginBalance();//RETURN string BTC
var walletBalance = bitmex.WalletBalance();//RETURN string BTC
var avalaibleBalance = bitmex.AvalaibleBalance();//RETURN string BTC

//POST
bitmex.PostOrderLimit("XBTUSD", "Buy", "1", "5000");
bitmex.PostOrderMarket("XBTUSD", "Buy", "1");
bitmex.PostOrderStopMarket("XBTUSD", "Sell", "1", "9000");
bitmex.PostOrderStopLimit("XBTUSD", "Buy", "1", "13000", "9000");
bitmex.PostOrderTakeProfitLimit("XBTUSD", "Buy", "1", "13000", "12000");
bitmex.PostOrderTakeProfitMarket("XBTUSD", "Buy", "1", "13000");
bitmex.ClosePosition("XBTUSD", "10000");
bitmex.DeleteAllOrders();
bitmex.DeleteOrderByID("Order_id_from_GetOrders_first_columns");
bitmex.PostLeverage("XBTUSD", "20");
bitmex.TransferMargin("XBTUSD", "150000");
bitmex.Withdrawal_Request("150000", "n43Ydq8NHrYVGxCk1AHP8ofFQ8j8w3LvSB", "google_auth_token");//API KEYS MUST HAVE A PERMISSION
bitmex.Withdrawal_Confirm("google_auth_token");//API KEYS MUST HAVE A PERMISSION

//Deserialize JSON example
var orders_ = JsonConvert.DeserializeObject<Orders[]>(orders); //All types are predefined in Bimex.IO class

Predefinet types:
<OrderBookItem[]>
<Positions[]>
<Orders[]>
<Wallet[]>

All for free before 15 September 2019

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.8.2 125 9/11/2019
1.8.1 77 9/11/2019
1.8.0 77 9/11/2019
1.7.1 85 9/7/2019
1.7.0 73 9/6/2019
1.0.0 73 9/6/2019
Show less