allyinvest/main.go

17 lines
294 B
Go
Raw Normal View History

2019-11-08 04:30:22 +00:00
package main
2019-11-27 13:29:14 +00:00
import (
"fmt"
"strconv"
)
2019-11-08 04:30:22 +00:00
func main() {
// Load our environment variables
var api AllyApi
api.Initialize()
2019-11-08 04:30:22 +00:00
2019-11-27 13:29:14 +00:00
acctId, _ := strconv.Atoi(api.Accounts()[0].Account)
fmt.Printf("AccountDetail: %s\n", api.AccountDetail(acctId).AccountHoldings.Holding[0].Displaydata.Change)
2019-11-08 04:30:22 +00:00
}