# Api-tournament deprecation notice

**URL:** <https://forum.numer.ai/t/api-tournament-deprecation-notice/5942>\
**Category:** Announcements\
**Created:** [December 15, 2022, 8:43pm UTC](https://forum.numer.ai/t/api-tournament-deprecation-notice/5942 "2022-12-15T20:43:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chanes](https://yyz1.discourse-cdn.com/flex009/user_avatar/forum.numer.ai/chanes/32/2895_2.png) [@chanes](https://forum.numer.ai/u/chanes)\
**Post date:** [December 15, 2022, 8:43pm UTC](https://forum.numer.ai/t/api-tournament-deprecation-notice/5942/1 "2022-12-15T20:43:58Z")

</div>

Following endpoints will stop getting new data end of next week, and will be removed completely on Jan. 31, 2023

- `v2UserProfile`
- `signalsUserProfile`

Any usage of these endpoints should be changed to use `v3UserProfile` or `v2SignalsProfile`

The following queries are no longer supported, any usage should be changed to use `v3UserProfile.RoundModelPerformances` or `v2SignalsProfile.RoundModelPerformances`:

- `v2RoundDetails`
- `RoundSubmissionPerformance`
- `SignalsRoundSubmissionPerformance`

The following fields are no longer supported and will be removed completely next week:

- `account.totalPendingPayouts`
- `tournamentOverview.totalNetEarningsToday`

Ping me (@2chanes) on Rocketchat for any questions/help. We will be deprecating more endpoints/fields related to payouts in the coming weeks and will announce those once they are known.

---

<div class="post-metadata">

**Author:** ![kayeffnumeraitor](https://yyz1.discourse-cdn.com/flex009/user_avatar/forum.numer.ai/kayeffnumeraitor/32/991_2.png) [@kayeffnumeraitor](https://forum.numer.ai/u/kayeffnumeraitor)\
**Post date:** [January 10, 2023, 11:57am UTC](https://forum.numer.ai/t/api-tournament-deprecation-notice/5942/2 "2023-01-10T11:57:06Z")

</div>

At the time of this post I did not realize the full extent of these changes, but it did break a model pipeline of mine, or lets say it “freezed” my model which is the reason why it took me a while to realize.

I am using the `NumerAPI` python client from the `numerapi` package, and I want to retrieve from a given model the daily (preliminary) scores (CORR, FNC, TC, etc) from a certain round, so basically the same information like on this page: [kayeffnumeraitor daily scores](https://numer.ai/kayeffnumeraitor/submissions/369)

With the previous `numerapi` package, this was possible via the function “daily\_submission\_performance”. Now that this function is non-existent, how is the preferred way of retrieving said information?

---

<div class="post-metadata">

**Author:** ![chanes](https://yyz1.discourse-cdn.com/flex009/user_avatar/forum.numer.ai/chanes/32/2895_2.png) [@chanes](https://forum.numer.ai/u/chanes)\
**Post date:** [January 11, 2023, 2:20pm UTC](https://forum.numer.ai/t/api-tournament-deprecation-notice/5942/3 "2023-01-11T14:20:40Z")

</div>

The query we use on the frontend is:

```auto
query v2RoundModelPerformances(modelId: "{model_id}", roundNumber__eq:330) {
  intraRoundSubmissionScores {
    date
    day
    displayName
    value
    percentile
  }
}

```

we plan on changing this endpoint in the coming weeks to be more “flat” so API users don’t have to parse the list of scores. Let me know if that doesn’t work for you or if you have any other questions.

---

<div class="post-metadata">

**Author:** ![kayeffnumeraitor](https://yyz1.discourse-cdn.com/flex009/user_avatar/forum.numer.ai/kayeffnumeraitor/32/991_2.png) [@kayeffnumeraitor](https://forum.numer.ai/u/kayeffnumeraitor)\
**Post date:** [January 15, 2023, 10:46am UTC](https://forum.numer.ai/t/api-tournament-deprecation-notice/5942/4 "2023-01-15T10:46:42Z")

</div>

Hello @chanes,

thanks for the reply, and yes that works for me. If there are changes please keep us updated as always.

For those that use the python `numerapi` client, this is the code that retrieves the daily preliminary scores:

```auto
public_id = "<Your public ID>"
secret_key = "<Your secret key>"

api = NumerAPI(public_id, secret_key)

model_id = "<Your model ID>"
round_number = 370

query = """
  query($model_id: String!, $round_number: Int) {
    v2RoundModelPerformances(modelId: $model_id, roundNumber__eq:$round_number) {
      intraRoundSubmissionScores {
        date
        day
        displayName
        value
        percentile
      }
    }
  }
"""
args = {
    'model_id': model_id,
    "round_number": round_number
}
api.raw_query(query, args)['data']['v2RoundModelPerformances'][0]['intraRoundSubmissionScores']

```
