Repository navigation
Commit fd78d75
committed
Fix forex snapshot last_quote ask/bid prices
TickerSnapshot.last_quote reuses the stock LastQuote model, which reads
ask/bid prices from P/p. Forex snapshot quotes send a/b instead, so
get_snapshot_ticker/all/direction for forex returned ask_price and
bid_price as None. Fall back to a/b when P/p are absent.1 parent 5d97632 commit fd78d75
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
60 | | - | |
| 61 | + | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| |||
0 commit comments