Esempio n. 1
0
        private async void btnAccount_Click(object sender, EventArgs e)
        {
            var hitBtcRestApi = new HitBtcRestApi();

            if (!hitBtcRestApi.IsAuthorized)
            {
                hitBtcRestApi.Authorize(ApiKey, SecretKey);
            }

            //var response = await hitBtcRestApi.Account.GetBalance();
            var response = await hitBtcRestApi.Account.GetAddress("btc");

            gridviewReponse.DataSource = response;
        }
Esempio n. 2
0
        private async void btnTradingTest_Click(object sender, EventArgs e)
        {
            var hitBtcRestApi = new HitBtcRestApi();

            if (!hitBtcRestApi.IsAuthorized)
            {
                hitBtcRestApi.Authorize(ApiKey, SecretKey);
            }

            //var response = await hitBtcRestApi.Trading.GetBalance();
            //var response = await hitBtcRestApi.Trading.GetFee("BTCUSD");
            var response = await hitBtcRestApi.Trading.GetOrders("BTCUSD");

            gridviewReponse.DataSource = response;
        }