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() {
|
2019-11-14 21:46:16 +00:00
|
|
|
// Load our environment variables
|
2019-11-15 16:16:56 +00:00
|
|
|
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
|
|
|
}
|