//========================================================== public BittrexResult <BittrexUuid> Withdraw(String Currency, Double Quantity, String Address, String PaymentId = null) { String APICall = API_URL + API_VER + "/account/withdraw"; String APIArgs = "currency=" + Currency + "&quantity=" + Quantity + "&address=" + Address; if (!String.IsNullOrEmpty(PaymentId)) { APIArgs += "&paymentid=" + PaymentId; } Signer S = new BittrexSigner(APICall, APIArgs, m_APIKey, m_APISecret); return(GetInternal <BittrexResult <BittrexUuid> >(S.APICallFinal, S) as BittrexResult <BittrexUuid>); }
//========================================================== public BittrexResult <List <BittrexDeposit> > GetDepositHistory(String Currency = null) { Signer S = new BittrexSigner(API_URL + API_VER + "/account/getdeposithistory", String.IsNullOrEmpty(Currency) ? null : "currency=" + Currency, m_APIKey, m_APISecret); return(GetInternal <BittrexResult <List <BittrexDeposit> > >(S.APICallFinal, S) as BittrexResult <List <BittrexDeposit> >); }
//========================================================== public BittrexResult <List <BittrexOrder1> > GetOrderHistory(String Market = null) { Signer S = new BittrexSigner(API_URL + API_VER + "/account/getorderhistory", String.IsNullOrEmpty(Market) ? null : "market=" + Market, m_APIKey, m_APISecret); return(GetInternal <BittrexResult <List <BittrexOrder1> > >(S.APICallFinal, S) as BittrexResult <List <BittrexOrder1> >); }
//========================================================== public BittrexResult <BittrexOrder2> GetOrder(String OrderUuid) { Signer S = new BittrexSigner(API_URL + API_VER + "/account/getorder", "uuid=" + OrderUuid, m_APIKey, m_APISecret); return(GetInternal <BittrexResult <BittrexOrder2> >(S.APICallFinal, S) as BittrexResult <BittrexOrder2>); }
//========================================================== public BittrexResult <BittrexAddress> GetDepositAddress(String Currency) { Signer S = new BittrexSigner(API_URL + API_VER + "/account/getdepositaddress", "currency=" + Currency, m_APIKey, m_APISecret); return(GetInternal <BittrexResult <BittrexAddress> >(S.APICallFinal, S) as BittrexResult <BittrexAddress>); }
//========================================================== public BittrexResult <BittrexBalance> GetBalance(String Currency) { Signer S = new BittrexSigner(API_URL + API_VER + "/account/getbalance", "currency=" + Currency, m_APIKey, m_APISecret); return(GetInternal <BittrexResult <BittrexBalance> >(S.APICallFinal, S) as BittrexResult <BittrexBalance>); }
//========================================================== public BittrexResult <List <BittrexBalance> > GetBalances() { Signer S = new BittrexSigner(API_URL + API_VER + "/account/getbalances", null, m_APIKey, m_APISecret); return(GetInternal <BittrexResult <List <BittrexBalance> > >(S.APICallFinal, S) as BittrexResult <List <BittrexBalance> >); }
//========================================================== public BittrexResult <List <BittrexOrder1> > GetOpenOrders(String Market) { Signer S = new BittrexSigner(API_URL + API_VER + "/account/getopenorders", "market=" + Market, m_APIKey, m_APISecret); return(GetInternal <BittrexResult <List <BittrexOrder1> > >(S.APICallFinal, S) as BittrexResult <List <BittrexOrder1> >); }
//========================================================== public BittrexResult <String> Cancel(String OrderUuid) { Signer S = new BittrexSigner(API_URL + API_VER + "/market/cancel", "uuid=" + OrderUuid, m_APIKey, m_APISecret); return(GetInternal <BittrexResult <BittrexUuid> >(S.APICallFinal, S) as BittrexResult <String>); }
//========================================================== public BittrexResult <BittrexUuid> SellLimit(String Market, Double Quantity, Double Rate) { Signer S = new BittrexSigner(API_URL + API_VER + "/market/selllimit", "market=" + Market + "&quantity=" + Quantity + "&rate=" + Rate, m_APIKey, m_APISecret); return(GetInternal <BittrexResult <BittrexUuid> >(S.APICallFinal, S) as BittrexResult <BittrexUuid>); }