Skip to content

I am sure its me not thinking properly....But... using the Streaming data How to tell if the last trade was a Buy or Sell #237

Description

@gmcodestuff

Hi all...please forgive me with this question - I am pretty sure its me missing something obvious....

I am consuming the streaming data
I get the Bid_Price, Ask_price,Last_Price, Last_Size data (amongst others)

To determine if that last order placed was a Buy or Sell I am taking the value of Last_Price and if its closer to the Ask_Price than the Bid_Price I am thinking the last trade was a buy.
If the last_price is closer to the Bid_Price I am thinking the last trade was a sell.

Am I making a bad assumption? is there a better way to consume the streaming data and determine Buy/Sell ??

Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions