update stock proto

This commit is contained in:
Asim Aslam
2021-06-18 14:59:17 +01:00
parent a047180905
commit 26293299d2
3 changed files with 28 additions and 27 deletions

View File

@@ -58,8 +58,8 @@ func (s *Stock) Quote(ctx context.Context, req *pb.QuoteRequest, rsp *pb.QuoteRe
}
rsp.Symbol = respBody.Symbol
rsp.Ask = respBody.Ask
rsp.Bid = respBody.Bid
rsp.AskPrice = respBody.Ask
rsp.BidPrice = respBody.Bid
rsp.AskSize = respBody.Asize
rsp.BidSize = respBody.Bsize
rsp.Timestamp = time.Unix(0, respBody.Timestamp * int64(time.Millisecond)).UTC().Format(time.RFC3339Nano)