BitFlyer.Apis 6.4.0

bitFlyer APIs Client Library for .NET

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

HTTP Public API

var ticker = await PublicApi.GetTicker(ProductCode.BtcJpy);

HTTP Private API

You can create API Key and API Secret here.
https://lightning.bitflyer.jp/developer

var api = new PrivateApi("Your API Key", "Your API Secret");
var result = await api.SendChildOrder(new SendChildOrderParameter
{
    ProductCode = ProductCode.FxBtcJpy,
    ChildOrderType = ChildOrderType.Limit,
    Side = Side.Buy,
    Price = 10000,
    Size = 0.01,
    MinuteToExpire = 10000,
    TimeInForce = TimeInForce.GoodTilCanceled
});

Realtime API

class Program
{
    static async Task Main(string[] args)
    {
        var api = new RealtimeApi();
        
        await api.Subscribe<Ticker>(RealtimeChannel.TickerFxBtcJpy, OnReceive, OnConnect, OnError);
        
        Console.ReadKey();
    }
    
    static void OnConnect()
    {
        Console.WriteLine("connected.");
    }
    
    static void OnReceive(Ticker data)
    {
        Console.WriteLine(data);
    }
    
    static void OnError(string message, Exception ex)
    {
        Console.WriteLine(message);
        if (ex != null)
        {
            Console.WriteLine(ex);
        }
    }
}

HTTP Public API

var ticker = await PublicApi.GetTicker(ProductCode.BtcJpy);

HTTP Private API

You can create API Key and API Secret here.
https://lightning.bitflyer.jp/developer

var api = new PrivateApi("Your API Key", "Your API Secret");
var result = await api.SendChildOrder(new SendChildOrderParameter
{
    ProductCode = ProductCode.FxBtcJpy,
    ChildOrderType = ChildOrderType.Limit,
    Side = Side.Buy,
    Price = 10000,
    Size = 0.01,
    MinuteToExpire = 10000,
    TimeInForce = TimeInForce.GoodTilCanceled
});

Realtime API

class Program
{
    static async Task Main(string[] args)
    {
        var api = new RealtimeApi();
        
        await api.Subscribe<Ticker>(RealtimeChannel.TickerFxBtcJpy, OnReceive, OnConnect, OnError);
        
        Console.ReadKey();
    }
    
    static void OnConnect()
    {
        Console.WriteLine("connected.");
    }
    
    static void OnReceive(Ticker data)
    {
        Console.WriteLine(data);
    }
    
    static void OnError(string message, Exception ex)
    {
        Console.WriteLine(message);
        if (ex != null)
        {
            Console.WriteLine(ex);
        }
    }
}

Release Notes

Support /v1/me/getbalancehistory
Support /v1/me/getcollateralaccounts

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
6.4.0 594 3/8/2019
6.3.0 153 12/21/2018
6.2.0 99 12/21/2018
6.1.0 386 9/7/2018
6.0.0 302 7/23/2018
5.10.0 463 2/24/2018
5.9.1 287 2/9/2018
5.9.0 278 1/24/2018
5.8.0 354 1/23/2018
5.7.0 363 12/21/2017
5.6.0 398 12/15/2017
5.5.0 439 11/28/2017
5.4.0 263 11/21/2017
5.3.0 251 11/20/2017
5.2.0 234 11/2/2017
5.1.0 313 10/13/2017
5.0.0 287 8/15/2017
4.1.0 295 5/31/2017
4.0.0 263 4/14/2017
3.0.0 319 2/2/2017
2.1.1 269 1/30/2017
2.1.0 259 1/26/2017
2.0.2 310 1/19/2017
2.0.1 277 1/18/2017
2.0.0 263 1/18/2017
1.1.0 263 1/17/2017
1.0.2 290 1/17/2017
1.0.1 252 1/16/2017
1.0.0 270 1/16/2017