fix ids
This commit is contained in:
@ -6,6 +6,7 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/google/uuid"
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
"github.com/shopspring/decimal"
|
"github.com/shopspring/decimal"
|
||||||
|
|
||||||
@ -139,7 +140,7 @@ func (m *Manager) SendQuote(
|
|||||||
}
|
}
|
||||||
|
|
||||||
q := quote.New(
|
q := quote.New(
|
||||||
field.NewQuoteID("NONREF"),
|
field.NewQuoteID(uuid.NewString()),
|
||||||
field.NewQuoteType(enum.QuoteType_INDICATIVE),
|
field.NewQuoteType(enum.QuoteType_INDICATIVE),
|
||||||
field.NewTransactTime(time.Now()),
|
field.NewTransactTime(time.Now()),
|
||||||
)
|
)
|
||||||
@ -152,7 +153,7 @@ func (m *Manager) SendQuote(
|
|||||||
q.SetSymbol("[N/A]")
|
q.SetSymbol("[N/A]")
|
||||||
q.SetSecurityID(symbol)
|
q.SetSecurityID(symbol)
|
||||||
q.SetSecurityIDSource(sIDSource)
|
q.SetSecurityIDSource(sIDSource)
|
||||||
q.SetQuoteID(quoteID)
|
q.SetQuoteReqID(quoteID)
|
||||||
|
|
||||||
if currency != "" {
|
if currency != "" {
|
||||||
q.SetCurrency(currency)
|
q.SetCurrency(currency)
|
||||||
|
|||||||
Reference in New Issue
Block a user