allyinvest/main.go

16 lines
236 B
Go
Raw Normal View History

2019-11-08 04:30:22 +00:00
package main
import (
"fmt"
)
func main() {
// Load our environment variables
var api AllyApi
api.Initialize()
2019-11-08 04:30:22 +00:00
acctSummary, _ := api.Accounts()
2019-11-08 04:30:22 +00:00
fmt.Printf("%f\n", acctSummary.Accounts[0].AccountHoldingsInfo.TotalSecurities)
2019-11-08 04:30:22 +00:00
}