BitFlyer.Apis 6.9.0

dotnet add package BitFlyer.Apis --version 6.9.0
                    
NuGet\Install-Package BitFlyer.Apis -Version 6.9.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="BitFlyer.Apis" Version="6.9.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="BitFlyer.Apis" Version="6.9.0" />
                    
Directory.Packages.props
<PackageReference Include="BitFlyer.Apis" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add BitFlyer.Apis --version 6.9.0
                    
#r "nuget: BitFlyer.Apis, 6.9.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=BitFlyer.Apis&version=6.9.0
                    
Install as a Cake Addin
#tool nuget:?package=BitFlyer.Apis&version=6.9.0
                    
Install as a Cake Tool

bitflyer-api-dotnet-client

bitFlyer APIs Client Library for .NET https://lightning.bitflyer.jp/docs

Install

Private API needs your API Key and Secret. If you use Private API, I recommend you to clone this repository and use it.

Quick Start

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);
        }
    }
}

Realtime API (Private)

class Program
{
    static async Task Main(string[] args)
    {
        var key = "Your API Key";
        var secret = "Your API Secret";
        var api = new RealtimeApi();
        
        await api.Subscribe<ChildOrderEvents[]>("child_order_events", OnReceive, OnConnect, OnError, key, secret);
        
        Console.ReadKey();
    }
    
    static void OnConnect()
    {
        Console.WriteLine("connected.");
    }
    
    static void OnReceive(ChildOrderEvents[] data)
    {
        Console.WriteLine(data[0]);
    }
    
    static void OnError(string message, Exception ex)
    {
        Console.WriteLine(message);
        if (ex != null)
        {
            Console.WriteLine(ex);
        }
    }
}

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
6.9.0 211 9/29/2023
6.8.1 533 6/14/2022
6.6.0 535 3/22/2021
6.5.0 681 8/5/2020
6.4.0 3,659 3/8/2019
6.3.0 849 12/21/2018
6.2.0 754 12/21/2018
6.1.0 1,184 9/7/2018
6.0.0 1,121 7/23/2018
5.10.0 1,496 2/24/2018
5.9.1 1,340 2/9/2018
5.9.0 1,324 1/24/2018
5.8.0 1,543 1/23/2018
5.7.0 1,574 12/21/2017
5.6.0 1,640 12/15/2017
5.5.0 1,820 11/28/2017
5.4.0 1,285 11/21/2017
5.3.0 1,228 11/20/2017
5.2.0 1,165 11/2/2017
5.1.0 1,693 10/13/2017
5.0.0 1,179 8/15/2017
4.1.0 1,181 5/31/2017
4.0.0 1,121 4/14/2017
3.0.0 1,227 2/2/2017
2.1.1 1,175 1/30/2017
2.1.0 1,130 1/26/2017
2.0.2 1,218 1/19/2017
2.0.1 1,170 1/18/2017
2.0.0 1,126 1/18/2017
1.1.0 1,172 1/17/2017
1.0.2 1,189 1/17/2017
1.0.1 1,106 1/16/2017
1.0.0 1,142 1/16/2017

Support net6.0, netstandard2.1
Add SHIB,PLT,FLR,MATIC,MKR,ZPG,SAND