All Projects → kiyoaki → bitflyer-api-dotnet-client

kiyoaki / bitflyer-api-dotnet-client

Licence: MIT license
bitFlyer HTTP APIs Client Library for .NET (C#)

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to bitflyer-api-dotnet-client

drowsy
😪 Lazy integrations tool for RESTful interfaces to aid POC development and streamline integrations
Stars: ✭ 19 (-17.39%)
Mutual labels:  api-client
yelp-ios
No description or website provided.
Stars: ✭ 61 (+165.22%)
Mutual labels:  api-client
JSON-API-Client
Abstract client-side php implementation of the json api specification (jsonapi.org)
Stars: ✭ 17 (-26.09%)
Mutual labels:  api-client
YuiAPI
一个浏览器API测试客户端,API文档生成器,支持chrome/firefox/新版edge
Stars: ✭ 25 (+8.7%)
Mutual labels:  api-client
sia-cog
Various cognitive api for machine learning, vision, language intent alalysis. Covers traditional as well as deep learning model design and training.
Stars: ✭ 34 (+47.83%)
Mutual labels:  api-client
pinboard.net
Fully featured API wrapper for pinboard.in
Stars: ✭ 21 (-8.7%)
Mutual labels:  api-client
rippled-php
A PHP library for rippled (XRP Ledger) communication.
Stars: ✭ 33 (+43.48%)
Mutual labels:  api-client
cells-client
Command line client to communicate with cells REST api.
Stars: ✭ 17 (-26.09%)
Mutual labels:  api-client
WikidataR
An R package for the Wikidata API
Stars: ✭ 49 (+113.04%)
Mutual labels:  api-client
qvapay-python
Non official, but friendly QvaPay library for the Python language.
Stars: ✭ 18 (-21.74%)
Mutual labels:  api-client
golio
League of Legends API client written in Golang
Stars: ✭ 45 (+95.65%)
Mutual labels:  api-client
noire-server
Hapi Boilerplate
Stars: ✭ 20 (-13.04%)
Mutual labels:  api-client
strava
PHP Class for the Strava API (v3)
Stars: ✭ 117 (+408.7%)
Mutual labels:  api-client
rdfp
This R package connects the DoubleClick for Publishers API from R
Stars: ✭ 16 (-30.43%)
Mutual labels:  api-client
tempo-api-python-client
Python bindings for Tempo - https://apidocs.tempo.io/
Stars: ✭ 17 (-26.09%)
Mutual labels:  api-client
binance-client-websocket
🛠️ C# client for Binance websocket API
Stars: ✭ 41 (+78.26%)
Mutual labels:  api-client
php-abraflexi
PHP Based Library for easy interaction with czech accounting system FlexiBee.
Stars: ✭ 15 (-34.78%)
Mutual labels:  api-client
my api client
A framework of Web API Client. Provides features error handling, retrying, pagination and so on.
Stars: ✭ 19 (-17.39%)
Mutual labels:  api-client
nis-python-client
Python client for NEM NIS API (https://nemproject.github.io). XEM\NEM\Crypto
Stars: ✭ 16 (-30.43%)
Mutual labels:  api-client
DummyJSON
DummyJSON provides different types of REST Endpoints filled with JSON data which you can use in developing the frontend with your favorite framework and library without worrying about writing a backend.
Stars: ✭ 213 (+826.09%)
Mutual labels:  api-client

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].