go-bitflyer

module
v0.0.0-...-935a062 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2020 License: MIT

README

go-bitflyer

Build Status Coverage Status GoDoc

go-bitflyer is a Go bindings for bitFlyer Lightning API.

Usage

package main

import (
  "log"

  "github.com/kkohtaka/go-bitflyer/pkg/api/auth"
  "github.com/kkohtaka/go-bitflyer/pkg/api/v1"
  "github.com/kkohtaka/go-bitflyer/pkg/api/v1/markets"
  "github.com/kkohtaka/go-bitflyer/pkg/api/v1/permissions"
)

func main() {
  client := v1.NewClient(&v1.ClientOpts{
    AuthConfig: &auth.AuthConfig{
      APIKey:    "**********************",
      APISecret: "********************************************",
    },
  })

  if resp, err := client.Permissions(&permissions.Request{}); err != nil {
    log.Fatalln(err)
  } else {
    log.Println(resp)
  }

  if resp, err := client.Markets(&markets.Request{}); err != nil {
    log.Fatalln(err)
  } else {
    log.Println(resp)
  }
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL