Skip to content

Lightweight golang wrapper for Betfair API-NG (streaming in dev)

Notifications You must be signed in to change notification settings

liampauling/gofair

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gofair

Lightweight golang wrapper for Betfair API-NG

use

config := &gofair.Config{
		"username",
		"password",
		"appKey",
		"/certs/client-2048.crt",
		"/certs/client-2048.key",
		"",
}

trading, err := gofair.NewClient(config)
if err != nil {
    panic(err)
}


fmt.Println(trading.Login())
fmt.Println(trading.KeepAlive())
fmt.Println(trading.Logout())

filter := new(gofair.MarketFilter)
event_types, err := trading.Betting.ListEventTypes(filter)

fmt.Println(event_types)

About

Lightweight golang wrapper for Betfair API-NG (streaming in dev)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages