Skip to content

barisa76/go-btcturk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

go-btcturk

golang client for btcturk api

documentation

the documentation is available on godoc

install

go get -u github.com/vural/go-btcturk/btcturk

usage

package main

import (
	"github.com/vural/go-btcturk/btcturk"
)

func main() {
    api := btcturk.NewBTCTurkClient()
    t, err := api.Ticker()
    if err != nil {
        print(err)
        os.Exit(1)
    }
    
    for _, v := range t {
        println(v.Ask)
    }

    // if you don't plan to call authenticated api methods. SetAuthKey not required.
    api.SetAuthKey("publicKey", "privateKey")
}

Passing params

Endpoint Params

package main

import (
	"github.com/vural/btcturk/btcturk"
)

func main() {
    api := btcturk.NewBTCTurkClient()
    api.SetAuthKey("publicKey", "privateKey")
    
    api.Price(3500).
        Amount(10).
        PairSymbol(btcturk.ETHTRY).
        PricePrecision(00).
        TotalPrecision(00).
        Buy()
}
328KptEkgzEGuQtNNiERrPnkzfyUpDAcbn 
`

## Notes
 - you can get your private/public key peer from your account

**[BTCTurk API documentation](https://github.com/BTCTrader/broker-api-docs/blob/master/README.md)**

About

golang client for btcturk api

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages