Giter Club home page Giter Club logo

coincheckgo's Introduction

coincheck-go

Install

  • go get github.com/Akagi201/coincheckgo

API

import (
    "github.com/Akagi201/coincheckgo"
)

client := new(coincheck.CoinCheck).NewClient("ACCESS_KEY", "API_SECRET")

/** Public API */
client.Ticker.All()
client.Trade.All()
client.OrderBook.All()

/** Private API */
// 新規注文
// "buy" 指値注文 現物取引 買い
// "sell" 指値注文 現物取引 売り
// "market_buy" 成行注文 現物取引 買い
// "market_sell" 成行注文 現物取引 売り
// "leverage_buy" 指値注文 レバレッジ取引新規 買い
// "leverage_sell" 指値注文 レバレッジ取引新規 売り
// "close_long" 指値注文 レバレッジ取引決済 売り
// "close_short" 指値注文 レバレッジ取引決済 買い
client.Order.Create(`{"rate":"28500","amount":"0.00508771", "order_type":"buy", "pair":"btc_jpy"}`)

// 未決済の注文一覧
client.Order.Opens()

// 注文のキャンセル
client.Order.Cancel("12345")

// 取引履歴
client.Order.Transactions()

// ポジション一覧
client.Leverage.Positions()

// 残高
client.Account.Balance()

// レバレッジアカウントの残高
client.Account.LeverageBalance()

// アカウント情報
client.Account.Info()

// ビットコインの送金
client.Send.Create(`{"address":"1Gp9MCp7FWqNgaUWdiUiRPjGqNVdqug2hY","amount":"0.0002"`)

// ビットコインの送金履歴
client.Send.All("currency=BTC")

// ビットコインの受け取り履歴
client.Deposit.All("currency=BTC")

// ビットコインの高速入金
client.Deposit.Fast("12345")

// 銀行口座一覧
client.BankAccount.All()

// 銀行口座の登録
client.BankAccount.Create(`{"bank_name":"MUFG","branch_name":"tokyo", "bank_account_type":"toza", "number":"1234567", "name":"Danny"}`)

// 銀行口座の削除
client.BankAccount.Delete("25621")

// 出金履歴
client.Withdraw.All()

// 出金申請の作成
client.Withdraw.Create(`{"bank_account_id":"2222","amount":"50000", "currency":"JPY", "is_fast":"false"}`)

// 出金申請のキャンセル
client.Withdraw.Cancel("12345")

// 借入申請
client.Borrow.Create(`{"amount":"100","currency":"JPY"}`)

// 借入中一覧
client.Borrow.Matches()

// 返済
client.Borrow.Repay("1135")

// レバレッジアカウントへの振替
client.Transfer.ToLeverage(`{"amount":"100","currency":"JPY"}`)

// レバレッジアカウントからの振替
client.Transfer.FromLeverage(`{"amount":"100","currency":"JPY"}`)

coincheckgo's People

Contributors

akagi201 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

kazchimo okb48

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.