NAME
WebService::Coincheck - coincheck Perl libraries http://coincheck.jp/
SYNOPSIS
use WebService::Coincheck;
my $coincheck = WebService::Coincheck->new(
access_key => 'YOUR_ACCESSKEY',
secret_key => 'YOUR_SECRETKEY',
);
# Public API
$coincheck->ticker->all;
$coincheck->trade->all;
$coincheck->order_book->all;
# Private API
# 新規注文
# "buy" 指値注文 現物取引 買い
# "sell" 指値注文 現物取引 売り
# "market_buy" 成行注文 現物取引 買い
# "market_sell" 成行注文 現物取引 売り
# "leverage_buy" 指値注文 レバレッジ取引新規 買い
# "leverage_sell" 指値注文 レバレッジ取引新規 売り
# "close_long" 指値注文 レバレッジ取引決済 売り
# "close_short" 指値注文 レバレッジ取引決済 買い
$coincheck->order->create(
rate => "28500",
amount => "0.00508771",
order_type => "buy",
pair => "btc_jpy"
);
# 未決済の注文一覧
$coincheck->order->opens;
# 注文のキャンセル
$coincheck->order->cancel(id => 2953613);
# 取引履歴
$coincheck->order->transactions;
# ポジション一覧
$coincheck->leverage->positions;
# 残高
$coincheck->account->balance;
# レバレッジアカウントの残高
$coincheck->account->leverage_balance;
# アカウント情報
$coincheck->account->info;
# ビットコインの送金
$coincheck->send->create(
address => '1Gp9MCp7FWqNgaUWdiUiRPjGqNVdqug2hY',
amount => '0.0002'
);
# ビットコインの送金履歴
$coincheck->send->all(currency => "BTC");
# ビットコインの受け取り履歴
$coincheck->deposit->all(currency => "BTC");
# ビットコインの高速入金
$coincheck->deposit->fast(id => 2222);
# 銀行口座一覧
$coincheck->bank_account->all;
# 銀行口座の登録
$coincheck->bank_account->create(
bank_name => "住信SBIネット",
branch_name => "ミカン",
bank_account_type => "futu",
number => "123456",
name => "ヤマモト タロウ"
);
# 銀行口座の削除
$coincheck->bank_account->delete;
# 出金履歴
$coincheck->withdraw->all;
# 出金申請の作成
$coincheck->withdraw->create(
bank_account_id => 2222,
amount => 50000,
currency => "JPY",
is_fast => false
);
# 出金申請のキャンセル
$coincheck->withdraw->cancel;
# 借入申請
$coincheck->borrow->create(
amount => "0.01",
currency => "BTC"
);
# 借入中一覧
$coincheck->borrow->matches;
# 返済
$coincheck->borrow->repay(id => "1135");
# レバレッジアカウントへの振替
$coincheck->transfer->to_leverage(
amount => 100,
currency => "JPY"
);
# レバレッジアカウントからの振替
$coincheck->transfer->from_leverage(
amount => 100,
currency => "JPY"
);
DESCRIPTION
WebService::Coincheck is the Perl libraries for http://coincheck.jp/ API
METHODS
new
the constructor
set_signature
generate signature
request
calling API
REPOSITORY
WebService::Coincheck is hosted on github: http://github.com/bayashi/WebService-Coincheck
I appreciate any feedback :D
AUTHOR
Dai Okabayashi <bayashi@cpan.org>
SEE ALSO
https://coincheck.com/ja/documents/exchange/api
LICENSE
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.