Skip to content
This repository was archived by the owner on Aug 12, 2023. It is now read-only.
This repository was archived by the owner on Aug 12, 2023. It is now read-only.

Null values returned for activeTraders and activeTradersChange #452

@porteron

Description

@porteron

When specifying the parameters statsPeriodTo and statsPeriodFrom the api consistently returns null for active traders fields.

https://api.0xtracker.com/apps/brave?statsPeriodFrom=2021-11-17&statsPeriodTo=2021-11-18

{
   "categories":[
      "wallet"
   ],
   "description":null,
   "id":"e9c9d7e5-f688-49d0-94d5-8b14d84a49bb",
   "logoUrl":"https://cdn.staticaly.com/gh/0xTracker/0x-tracker-worker/master/src/attributions/logos/brave.png",
   "name":"Brave",
   "stats":{
      "activeTraders":null,
      "activeTradersChange":null,
      "avgTradeSize":10982.36563720703,
      "avgTradeSizeChange":168.24390635599852,
      "tradeCount":{
         "relayed":0,
         "total":10
      },
      "tradeCountChange":{
         "relayed":null,
         "total":0
      },
      "tradeVolume":{
         "relayed":0,
         "total":109823.65637207031
      },
      "tradeVolumeChange":{
         "relayed":null,
         "total":168.24390635599852
      }
   },
   "urlSlug":"brave",
   "websiteUrl":"https://brave.com/"
}

This is not the case when only using the param statsPeriod: https://api.0xtracker.com/apps/brave?statsPeriod=day

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions