Skip to content

This is unofficial library golang for Indodax trading platform.

License

Notifications You must be signed in to change notification settings

edward-yakop/go-indodax

 
 

Repository files navigation

GO-Indodax - A Library trading platform Indodax using Go Language

Description

Welcome to Indodax golang library. These library outline exchange functionality, market details, and APIs.

APIs are separated into two categories: private and public. Private APIs require authentication and provide access to placing orders and other account information. Public APIs provide market data.

Features

Public Endpoint

  • Ticker
  • Depth (Order Book)
  • Trades (Trade History)

Private Endpoint

  • Get Information User
  • Withdraw/Deposit History
  • Trading History
  • Order History
  • Open Orders
  • Trade
  • Withdraw (Coming Soon) ``

Example

To start use the library you can get the repository first:

go get github.com/edward-yakop/go-indodax

Public Endpoint

package test

import (
	"context"
    "fmt"
    "github.com/edward-yakop/go-indodax"
)

func main() {
    cl, err := indodax.NewClient(
		"",
		"",
	)
	ticker, err := cl.GetTicker(context.Background(), "ten_idr")
	if err != nil {
		fmt.Println(err)
	}
    fmt.Printf("Ticker %v\n",ticker)
}

Private Endpoint

package test

import (
    "context"
    "fmt"
    "github.com/edward-yakop/go-indodax"
)

func main() {
    cl, err := indodax.NewClient(
		"key", 
		"secret", 
	)
	tradeBuy, err := cl.TradeBuy(context.Background(), "usdt_idr", 12000, 50000)
	if err != nil {
		fmt.Println(err)
	}
    fmt.Printf("TradeBuy %v\n",tradeBuy)
}

Notes

  • For bug report you can refer to this
  • For feature request you can refer to this

About

This is unofficial library golang for Indodax trading platform.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%