Skip to content

Commit

Permalink
Fixed pong status on new quotes to resolve #1096.
Browse files Browse the repository at this point in the history
████ ███  To request new features or in case this commit breaks something for you,
████ ███  please, create a new github issue with all possible information for me,
▓███▀█▄   but never share your API Keys!
▒▓██ ███
░▒▓█ ███  Signed-off-by: Carles Tubio <ctubio@users.noreply.github.com>
 _______________________________
/ Hello, WORLD!                 \
|                               |
\ pssst.. 1 BTC = 28796.25 EUR. /
 -------------------------------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
  • Loading branch information
ctubio committed Jul 12, 2021
1 parent 7750c8b commit 4eca855
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bin/trading-bot/trading-bot.data.h
Original file line number Diff line number Diff line change
Expand Up @@ -1975,6 +1975,8 @@ namespace tribeca {
K.log("DEBUG QE", "[" + step + "] "
+ to_string((int)bid.state) + ":"
+ to_string((int)ask.state) + " "
+ to_string((int)bid.isPong) + ":"
+ to_string((int)ask.isPong) + " "
+ ((json){{"bid", bid}, {"ask", ask}}).dump()
);
};
Expand Down Expand Up @@ -2008,6 +2010,8 @@ namespace tribeca {
, quotes(Q)
{};
void calcRawQuotes() const {
quotes.ask.isPong =
quotes.bid.isPong = false;
calcRawQuotesFromMarket(
levels,
K.gateway->tickPrice,
Expand Down

0 comments on commit 4eca855

Please sign in to comment.