コード例 #1
0
        //==========================================================
        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>);
        }
コード例 #2
0
        //==========================================================
        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> >);
        }
コード例 #3
0
        //==========================================================
        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> >);
        }
コード例 #4
0
        //==========================================================
        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>);
        }
コード例 #5
0
        //==========================================================
        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>);
        }
コード例 #6
0
        //==========================================================
        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>);
        }
コード例 #7
0
        //==========================================================
        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> >);
        }
コード例 #8
0
        //==========================================================
        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> >);
        }
コード例 #9
0
        //==========================================================
        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>);
        }
コード例 #10
0
        //==========================================================
        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>);
        }