bigshortbets / indexer

Subsquid indexer aligned with P2P Market metadata
MIT License
1 stars 4 forks source link

Added extra position field "entryPrice" #3

Closed diego351 closed 9 months ago

diego351 commented 10 months ago

I spend some time preparing tests for this with some success but not ready yet.

query:

  positions(where: {market: {id_eq: "9223372036854775809"}}, limit: 10, orderBy: timestamp_DESC) {
    id
    price
    timestamp
    quantity
    long
    short
    status
    entryPrice
  }
}