crex24

package module
v0.0.0-...-3f65282 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2018 License: MIT Imports: 1 Imported by: 0

README

go-crex24

Go API interface to Crex24 exchange API v2.

NOTE: Under active development and subject to change.

Install

go get -u github.com/hetus/go-crex24

Configure

To configure you need to copy .env.example to .env in your local folder and change the API KEY and SECRET fields.

Run Demo

go run cmd/crex24-demo/main.go

Use

Example usage:

package main

import (
	"fmt"
	"log"

	"github.com/hetus/go-crex24"
)

func main() {
    api := crex24.New()

    ts, err := api.Tickers()
    if err != nil {
        log.Fatalf("Error: %v\n", err)
    }
    fmt.Println(ts)
}

TODO

  • Added validation to endpoints
  • Write tests for endpoints
  • Clean code

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() (e *exchange.Exchange)

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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