Sorare API – Request previously sold card prices

Sorare API – Request previously sold card prices


0

I’m trying to retrieve the price of the last sales of sorare cards for a particular player. I can’t find the right argement to pass to the query to do this. I’m also looking to see if it’s possible to retrieve indicators such as average card prices.

I’ve managed to retrieve the price of the card live at auction and the set price of the cards put up for sale on the market. However, these are only the listed prices and not the prices when the card is sold.

`

query {
  allCards (playerSlugs : "miki-yamane", rarities : super_rare owned : true) {
    nodes {
      age
      slug
      season {
        startYear
      }
      token {
        sentInLiveOffers {
          endDate
        }
        liveSingleSaleOffer {
          priceWei
        }
        }
      }
    }
  }

1 Answer
1


0

You can obtain it using the ownershipHistory inside the Token. Here is an example:

query test {
  allCards (playerSlugs : "miki-yamane", rarities : super_rare owned : true) {
    nodes {
      age
      slug
      season {
        startYear
      }
      token {
        sentInLiveOffers {
          endDate
        }
        liveSingleSaleOffer {
          status
        }
        ownershipHistory {
          from
          price{
            eur
            wei
          }
          user {
            slug
          }
        }
        
        }
      }
    }
}

New contributor

Jorge Silva is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



Leave a Reply

Your email address will not be published. Required fields are marked *