public List <OpenOrder> GetOrders(string market = "", string orderstatus = "", string ordertype = "") { if (market == string.Empty) { market = "ALL"; } if (orderstatus == string.Empty) { orderstatus = "ALL"; } if (ordertype == string.Empty) { ordertype = "ALL"; } var function = string.Format("getorders?apikey={0}&nonce={1}&market={2}&orderstatus={3}&ordertype={4}", UserData.API_KEY, this.GetNonce(), market, orderstatus, ordertype); var request = new PrivateBaseRequest <OpenOrder>() { BaseUrl = "https://bleutrade.com/api/v2/account", Function = function }; return(request.GetResponse().result); }
public List <BalanceModel> GetBalances() { var function = string.Format("getbalances?apikey={0}&nonce={1}", UserData.API_KEY, this.GetNonce()); var request = new PrivateBaseRequest <BalanceModel>() { BaseUrl = "https://bleutrade.com/api/v2/account", Function = function }; return(request.GetResponse().result); }
public List <OpenOrder> GetOpenOrders() { var function = string.Format("getopenorders?apikey={0}&nonce={1}", UserData.API_KEY, this.GetNonce()); var request = new PrivateBaseRequest <OpenOrder>() { BaseUrl = "https://bleutrade.com/api/v2/market", Function = function }; return(request.GetResponse().result); }