An implementation of a Mt. Gox client in Go. It uses the websocket interface.
Note: This API is experimental.
Example below. API Documentation on Godoc.
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)
}
MIT found in LICENSE file.