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 void Main(string[] args)
    {
        var api = new RealtimeApi();
        
        api.Subscribe<Ticker>(RealtimeChannel.TickerFxBtcJpy, OnReceive, OnConnect, OnError).Wait();
        
        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 void Main(string[] args)
    {
        var api = new RealtimeApi();
        
        api.Subscribe<Ticker>(RealtimeChannel.TickerFxBtcJpy, OnReceive, OnConnect, OnError).Wait();
        
        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

Version History

Version Downloads Last updated
6.4.0 354 3/8/2019
6.3.0 137 12/21/2018
6.2.0 84 12/21/2018
6.1.0 368 9/7/2018
6.0.0 286 7/23/2018
5.10.0 450 2/24/2018
5.9.1 264 2/9/2018
5.9.0 256 1/24/2018
5.8.0 283 1/23/2018
5.7.0 340 12/21/2017
5.6.0 319 12/15/2017
5.5.0 381 11/28/2017
5.4.0 238 11/21/2017
5.3.0 229 11/20/2017
5.2.0 216 11/2/2017
5.1.0 287 10/13/2017
5.0.0 268 8/15/2017
4.1.0 275 5/31/2017
4.0.0 235 4/14/2017
3.0.0 289 2/2/2017
2.1.1 238 1/30/2017
2.1.0 237 1/26/2017
2.0.2 291 1/19/2017
2.0.1 249 1/18/2017
2.0.0 241 1/18/2017
1.1.0 244 1/17/2017
1.0.2 263 1/17/2017
1.0.1 240 1/16/2017
1.0.0 241 1/16/2017