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.
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.
// Install BitFlyer.Apis as a Cake Addin
#addin nuget:?package=BitFlyer.Apis&version=6.9.0

// Install BitFlyer.Apis as a Cake Tool
#tool nuget:?package=BitFlyer.Apis&version=6.9.0

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. 
.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 135 9/29/2023
6.8.1 453 6/14/2022
6.6.0 447 3/22/2021
6.5.0 583 8/5/2020
6.4.0 3,508 3/8/2019
6.3.0 741 12/21/2018
6.2.0 645 12/21/2018
6.1.0 1,049 9/7/2018
6.0.0 945 7/23/2018
5.10.0 1,236 2/24/2018
5.9.1 1,056 2/9/2018
5.9.0 1,038 1/24/2018
5.8.0 1,178 1/23/2018
5.7.0 1,202 12/21/2017
5.6.0 1,262 12/15/2017
5.5.0 1,441 11/28/2017
5.4.0 1,009 11/21/2017
5.3.0 944 11/20/2017
5.2.0 964 11/2/2017
5.1.0 1,211 10/13/2017
5.0.0 980 8/15/2017
4.1.0 981 5/31/2017
4.0.0 924 4/14/2017
3.0.0 1,027 2/2/2017
2.1.1 974 1/30/2017
2.1.0 931 1/26/2017
2.0.2 1,000 1/19/2017
2.0.1 970 1/18/2017
2.0.0 926 1/18/2017
1.1.0 969 1/17/2017
1.0.2 988 1/17/2017
1.0.1 909 1/16/2017
1.0.0 946 1/16/2017

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