KunaApi 1.0.0.1

Kuna.io API library

Install-Package KunaApi -Version 1.0.0.1
dotnet add package KunaApi --version 1.0.0.1
<PackageReference Include="KunaApi" Version="1.0.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add KunaApi --version 1.0.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Kuna.io C# API Client

Kuna.io

If this code was helpful for you and you want to say 'thanks', you are welcome.

temama BTC: 1H1UFRLfcNkMLVWxDowrPgyWLesDyVnJuA

Partiolainen BTC: 172ebm5vgn91ztVmmzyDa29wKvzYzLhGqL

Usage

using KunaApi;

namespace KunaApiTest
{
    class Program
    {
        private static string _publicKey = ""; // Your public key
        private static string _secret = ""; // Your secret key

        static void Main(string[] args)
        {
            // Public methods:

            var time = KunaApiClient.GetServerTimestamp();

            var ticker = KunaApiClient.GetTicker(KunaMarket.BtcUah);

            var orderBook = KunaApiClient.GetOrderBook(KunaMarket.BtcUah);

            var marketTrades = KunaApiClient.GetTrades(KunaMarket.BtcUah);


            // User methods:

            var kunaApi = new KunaApiClient(_publicKey, _secret);

            var userInfo = kunaApi.GetUserInfo();

            var placedOrder = kunaApi.PlaceOrder(KunaMarket.BtcUah, "buy", 0.0001, 100);

            var cancelledOrder = kunaApi.CancelOrder(placedOrder);
            // var cancelledOrder = kunaApi.CancelOrder(placedOrder.Id); - the same

            var activeOrders = kunaApi.ActiveOrders(KunaMarket.BtcUah);

            var userTrades = kunaApi.UserTrades(KunaMarket.BtcUah);
        }
    }
}

Kuna.io C# API Client

Kuna.io

If this code was helpful for you and you want to say 'thanks', you are welcome.

temama BTC: 1H1UFRLfcNkMLVWxDowrPgyWLesDyVnJuA

Partiolainen BTC: 172ebm5vgn91ztVmmzyDa29wKvzYzLhGqL

Usage

using KunaApi;

namespace KunaApiTest
{
    class Program
    {
        private static string _publicKey = ""; // Your public key
        private static string _secret = ""; // Your secret key

        static void Main(string[] args)
        {
            // Public methods:

            var time = KunaApiClient.GetServerTimestamp();

            var ticker = KunaApiClient.GetTicker(KunaMarket.BtcUah);

            var orderBook = KunaApiClient.GetOrderBook(KunaMarket.BtcUah);

            var marketTrades = KunaApiClient.GetTrades(KunaMarket.BtcUah);


            // User methods:

            var kunaApi = new KunaApiClient(_publicKey, _secret);

            var userInfo = kunaApi.GetUserInfo();

            var placedOrder = kunaApi.PlaceOrder(KunaMarket.BtcUah, "buy", 0.0001, 100);

            var cancelledOrder = kunaApi.CancelOrder(placedOrder);
            // var cancelledOrder = kunaApi.CancelOrder(placedOrder.Id); - the same

            var activeOrders = kunaApi.ActiveOrders(KunaMarket.BtcUah);

            var userTrades = kunaApi.UserTrades(KunaMarket.BtcUah);
        }
    }
}

Release Notes

Kuna.io API library

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.0.1 341 8/29/2018