Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
package main
import (
coincheckgo ""
type TickerResult struct {
Last float64
Bid float64
Ask float64
High float64
Low float64
Volume float64
Timestamp int
func main() {
client := new(coincheckgo.CoinCheck).NewClient("YourAccessKey", "YourSecretKey")
// Ticker
// 残高
balance := client.Account.Balance()
func getTicker(client coincheckgo.CoinCheck) TickerResult {
resp := client.Ticker.All()
var tick_result TickerResult
json_err := json.Unmarshal([]byte(resp), &tick_result)
if json_err != nil {
return tick_result

This comment has been minimized.

Copy link

k1asa commented Jan 10, 2018

"encoding/json" のimportが必要なようでしたので

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.