All Projects → unhappychoice → bitflyer

unhappychoice / bitflyer

Licence: MIT license
⚡ bitFlyer API wrapper for Ruby

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to bitflyer

SwiftFlyer
An API wrapper for bitFlyer.
Stars: ✭ 39 (+56%)
Mutual labels:  api-wrapper, bitflyer
bookops-worldcat
BookOps WorldCat Metadata API wrapper
Stars: ✭ 21 (-16%)
Mutual labels:  api-wrapper
messages
A python package designed to make sending messages easy and efficient!
Stars: ✭ 38 (+52%)
Mutual labels:  api-wrapper
libdrizzle-redux
The next generation of Libdrizzle with a simplified API and support for more features of the protocol
Stars: ✭ 14 (-44%)
Mutual labels:  api-wrapper
ruby-ambassador
Ambassador API v2 wrapper for Ruby
Stars: ✭ 20 (-20%)
Mutual labels:  api-wrapper
blac
bitFlyer Lightning API Console
Stars: ✭ 16 (-36%)
Mutual labels:  bitflyer
knowledgeworks api
The API utils for querying CN-DBpedia & CN-Probase, the biggest Chinese knowledge bases
Stars: ✭ 24 (-4%)
Mutual labels:  api-wrapper
hackerone-client
An unofficial wrapper for the HackerOne API
Stars: ✭ 55 (+120%)
Mutual labels:  api-wrapper
cf-mailchimp
ColdFusion wrapper for the MailChimp 3.0 API
Stars: ✭ 17 (-32%)
Mutual labels:  api-wrapper
newsapi-php
A PHP client for the News API (https://newsapi.org/docs/get-started)
Stars: ✭ 21 (-16%)
Mutual labels:  api-wrapper
Pyrez
(ON REWRITE) An easy to use (a)sync wrapper for Hi-Rez Studios API (Paladins, Realm Royale, and Smite), written in Python. 🐍
Stars: ✭ 23 (-8%)
Mutual labels:  api-wrapper
powershellwrapper
This PowerShell module acts as a wrapper for the IT Glue API.
Stars: ✭ 96 (+284%)
Mutual labels:  api-wrapper
pjbank-js-sdk
PJBank SDK para Javascript! ⚡ ⚡ ⚡
Stars: ✭ 24 (-4%)
Mutual labels:  api-wrapper
wikipedia-reference-scraper
Wikipedia API wrapper for references
Stars: ✭ 34 (+36%)
Mutual labels:  api-wrapper
article-downloader
Uses publisher APIs to programmatically retrieve scientific journal articles for text mining.
Stars: ✭ 81 (+224%)
Mutual labels:  api-wrapper
cpAPI
A Flask API that gives updates about the upcoming contests on various Coding Platforms.
Stars: ✭ 13 (-48%)
Mutual labels:  api-wrapper
epicstore api
Epic Games Store Web API Wrapper written in Python
Stars: ✭ 48 (+92%)
Mutual labels:  api-wrapper
AniList-Node
A lightweight Node.js wrapper for the AniList API
Stars: ✭ 36 (+44%)
Mutual labels:  api-wrapper
py-vkontakte
A Python wrapper around the vk.com
Stars: ✭ 17 (-32%)
Mutual labels:  api-wrapper
ZmopSharp
ZMOP (芝麻信用开放平台) SDK for .NET
Stars: ✭ 11 (-56%)
Mutual labels:  api-wrapper

bitflyer

All Contributors

Gem Version Circle CI Code Climate Libraries.io dependency status for GitHub repo GitHub

bitflyer is a wrapper interface of Bitflyer lightning API

Installation

gem install bitflyer

Usage

See https://lightning.bitflyer.jp/docs for details.

HTTP API

See public.rb / private.rb for method definition.

Example

public_client = Bitflyer.http_public_client
p public_client.board # will print board snapshot
 
private_client = Bitflyer.http_private_client('YOUR_API_KEY', 'YOUR_API_SECRET')
p private_client.positions # will print your positions

Realtime API

Public events

Accessor format is like {event_name}_{product_code}. You can set lambda to get realtime events.

{event_name} and {product_code} is defined at client.rb.

Private events

To subscribe to the private child_order_events and parent_order_events, pass your API key and secret when creating the realtime_client.

Connection status monitoring

The ready callback is called when the realtime_client is ready to receive events (after the socket connection is established, the optional authentication has succeeded, and the channels have been subscribed). If connection is lost, the disconnected callback is called, and reconnection is attempted automatically. When connection is restored, ready is called again.

Examples

For public events only:

client = Bitflyer.realtime_client
client.ticker_btc_jpy = ->(json){ p json } # will print json object
client.executions_btc_jpy = ->(json){ p json }
# ...

For both public and private events:

client = Bitflyer.realtime_client('YOUR_API_KEY', 'YOUR_API_SECRET')
# Private events:
client.child_order_events = ->(json){ p json }
client.parent_order_events = ->(json){ p json }
# Public events:
client.ticker_btc_jpy = ->(json){ p json }
client.executions_btc_jpy = ->(json){ p json }
# ...

Connection monitoring:

client = Bitflyer.realtime_client
client.ready = -> { p "Client is ready to receive events" }
client.disconnected = ->(error) { p "Client got disconnected" }

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/unhappychoice/bitflyer. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Contributors

Thanks goes to these wonderful people (emoji key):


Yves-Eric Martin

💻

Yuji Ueki

💻

Shoma FUKUDA

💻

shidetake

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

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].