|
@@ -9,13 +9,11 @@ import (
|
|
|
)
|
|
|
|
|
|
const (
|
|
|
- // address = "fhogrpc-test.seinmaungengineering.com:7091"
|
|
|
- address = "localhost:7090"
|
|
|
+ address = "fhogrpc-test.seinmaungengineering.com:7091"
|
|
|
)
|
|
|
|
|
|
func main() {
|
|
|
- // client, err := fho.NewClient(address, "da910506-4bdc-4dc2-9481-58a4e3e3c8bf", "1adf4633-7e9e-4bd0-b512-7b087d9c9719")
|
|
|
- client, err := fho.NewClient(address, "bd38e9ac-210a-4e85-865c-401270c07220", "8c95f7fa-3071-427d-a27a-6f96e1d9590e")
|
|
|
+ client, err := fho.NewClient(address, "da910506-4bdc-4dc2-9481-58a4e3e3c8bf", "1adf4633-7e9e-4bd0-b512-7b087d9c9719")
|
|
|
if err != nil {
|
|
|
panic(err)
|
|
|
}
|
|
@@ -90,7 +88,7 @@ func listenProducts(client *fho.FhoClient) error {
|
|
|
}
|
|
|
|
|
|
func listenPrices(client *fho.FhoClient) error {
|
|
|
- err := fho.ListenOnPrice(client, time.Now().Add(time.Hour*-114), func(prices []*fho.PriceSchedule) error {
|
|
|
+ err := fho.ListenOnPrice(client, time.Now().Add(time.Hour*-314), func(prices []*fho.PriceSchedule) error {
|
|
|
for _, p := range prices {
|
|
|
fmt.Println("Listening=====>")
|
|
|
printPrice(p)
|