2023-04-20 13:02:25 -07:00
|
|
|
package notional
|
|
|
|
|
|
|
|
// DummyNotionalCache is a dummy notional cache.
|
|
|
|
type DummyNotionalCache struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewDummyNotionalCache init a new dummy notional cache.
|
|
|
|
func NewDummyNotionalCache() *DummyNotionalCache {
|
|
|
|
return &DummyNotionalCache{}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Get get notional cache value.
|
2023-05-04 16:17:03 -07:00
|
|
|
func (c *DummyNotionalCache) Get(symbol string) (PriceData, error) {
|
|
|
|
return PriceData{}, nil
|
2023-04-20 13:02:25 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
// Close the dummy cache.
|
|
|
|
func (c *DummyNotionalCache) Close() error {
|
|
|
|
return nil
|
|
|
|
}
|