polygon-io / issues

Quickly track and report problems with polygon.io
29 stars 0 forks source link

Crypto: Coinbase volume buy/sell designation incorrect #170

Open tr8dr opened 2 years ago

tr8dr commented 2 years ago

URL [data pull](https://api.polygon.io/v1/historic/crypto/ETH/USD/2020-01-03?reverse=false&limit=500&apiKey=...

Result The trades have buy & sell reversed (where normally in conditions, 1 = Sell and 2 = Buy). Other crypto sources are showing trades with the correct buy vs sell designation.

The first result, for example, shows a sell (condition = 1), whereas should be a buy. This flipped side is consistently wrong throughout the data. Suggest that someone misinterpreted whether the buy or sell was from the maker or taker side.

{"x":2,"p":127.5609376,"s":1.89218,"c":[1],"i":"406913975","t":1578009600804}

Expected Result The buy and sells should be flipped.

Additional context I have data from other sources showing that the trade buy / sell designation is reversed in Polygon data. Other exchange sources, such as Kraken, Bitfinex, etc are fine in the Polygon data.

jrbell19 commented 2 years ago

The example you provided is from Bitfinex, which you said is fine at the bottom. Is this just an example of the response?

tr8dr commented 2 years ago

I meant to provide a coinbase example, my bad. The problem is indeed with coinbase data.