Skip to content

Narsil/gogox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mtgox

An implementation of a Mt. Gox client in Go. It uses the websocket interface.

Note: This API is experimental.

Documentation

Example below. API Documentation on Godoc.

Example

func ExampleStreamingApi() {
	gox, err := NewFromConfig(os.ExpandEnv("$MTGOX_CONFIG"))
    gox.Start()
	if err != nil {
		panic(err)
	}

	tickers := gox.Ticker
	if err != nil {
		panic(err)
	}

	go func() {
		for ticker := range tickers {
			fmt.Println("Got ticker", ticker)
		}
	}()


	orderchan := gox.SubmitOrder("bid", 100000000, 10000) // Both are in _int notation

	order := <-orderchan
    fmt.Println("Yay submitted an order!", order)
}

License

MIT found in LICENSE file.

About

MtGox Go API, Simplified compared to golang-mtgox

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages