@@ -175,9 +175,23 @@ pub mod stubs {
175
175
use crate :: {
176
176
data:: quote:: QuoteTick ,
177
177
identifiers:: instrument_id:: InstrumentId ,
178
+ instruments:: { currency_pair:: CurrencyPair , stubs:: * } ,
178
179
types:: { price:: Price , quantity:: Quantity } ,
179
180
} ;
180
181
182
+ #[ fixture]
183
+ pub fn quote_tick_audusd_sim ( audusd_sim : CurrencyPair ) -> QuoteTick {
184
+ QuoteTick {
185
+ instrument_id : audusd_sim. id ,
186
+ bid_price : Price :: from ( "1.00000" ) ,
187
+ ask_price : Price :: from ( "1.00000" ) ,
188
+ bid_size : Quantity :: from ( 100_000 ) ,
189
+ ask_size : Quantity :: from ( 100_000 ) ,
190
+ ts_event : UnixNanos :: default ( ) ,
191
+ ts_init : UnixNanos :: from ( 1 ) ,
192
+ }
193
+ }
194
+
181
195
#[ fixture]
182
196
pub fn quote_tick_ethusdt_binance ( ) -> QuoteTick {
183
197
QuoteTick {
@@ -186,7 +200,7 @@ pub mod stubs {
186
200
ask_price : Price :: from ( "10001.0000" ) ,
187
201
bid_size : Quantity :: from ( "1.00000000" ) ,
188
202
ask_size : Quantity :: from ( "1.00000000" ) ,
189
- ts_event : UnixNanos :: from ( 0 ) ,
203
+ ts_event : UnixNanos :: default ( ) ,
190
204
ts_init : UnixNanos :: from ( 1 ) ,
191
205
}
192
206
}
0 commit comments