ao-data / albiondata-client

Distributed client for the Albion Online Data project.
https://www.albion-online-data.com/
MIT License
101 stars 30 forks source link

How this work? #77

Closed aquinary closed 3 months ago

aquinary commented 8 months ago

I'm sorry if I'm asking obvious questions. But it's hard for me to understand why I observe different behavior where it shouldn't be (or I don't understand it). All results will be based on this request to the Swagger API:

https://west.albion-online-data.com/api/v2/stats/Charts/QUESTITEM_EXP_TOKEN_D4_T6_EXP_HRD_HERETIC_FISHYBUSINESS.json?date=2023-12-13&qualities=1&time-scale=24

The date will change, which I will not forget to specify.

  1. I use the value 2023-12-13 as the date and get the following result:

    [
    {
    "data": {
      "timestamps": [
        "2023-12-12T00:00:00",
        "2023-12-13T00:00:00"
      ],
      "prices_avg": [
        14422,
        14431
      ],
      "item_count": [
        2,
        3
      ]
    },
    "location": "Thetford",
    "item_id": "QUESTITEM_EXP_TOKEN_D4_T6_EXP_HRD_HERETIC_FISHYBUSINESS",
    "quality": 1
    }
    ]

    Why do I see data for 2023-12-12T00:00:00?

  2. I use 2023-12-12:

    [
    {
    "data": {
      "timestamps": [
        "2023-12-11T00:00:00",
        "2023-12-12T00:00:00",
        "2023-12-13T00:00:00"
      ],
      "prices_avg": [
        14339,
        15438,
        14431
      ],
      "item_count": [
        2,
        8,
        3
      ]
    },
    "location": "Thetford",
    "item_id": "QUESTITEM_EXP_TOKEN_D4_T6_EXP_HRD_HERETIC_FISHYBUSINESS",
    "quality": 1
    }
    ]

    Why is the value for 2023-12-12 different in both cases? 14422 vs 15438? When I write 2023-12-12, do I get data for the whole day or some data selected in the middle of the day?

  3. I use 2023-12-11:

    [
    {
    "data": {
      "timestamps": [
        "2023-12-11T00:00:00",
        "2023-12-12T00:00:00",
        "2023-12-13T00:00:00"
      ],
      "prices_avg": [
        16317,
        15438,
        14431
      ],
      "item_count": [
        11,
        8,
        3
      ]
    },
    "location": "Thetford",
    "item_id": "QUESTITEM_EXP_TOKEN_D4_T6_EXP_HRD_HERETIC_FISHYBUSINESS",
    "quality": 1
    }
    ]

    Why don't I see information for 2023-12-10 now? (this information exists, I checked). In the first two paragraphs, I received data for a day ago, but in the third paragraph, this is not the case. How does it work?

  4. I make new request:

    https://west.albion-online-data.com/api/v2/stats/Charts/T4_METALBAR.json?locations=Caerleon%2CBlack%20Market&date=2023-12-12&qualities=1&time-scale=24

    Get result:

    [
    {
    "data": {
      "timestamps": [
        "2023-12-11T00:00:00",
        "2023-12-12T00:00:00"
      ],
      "prices_avg": [
        206,
        220
      ],
      "item_count": [
        40346,
        9758
      ]
    },
    "location": "Black Market",
    "item_id": "T4_METALBAR",
    "quality": 1
    },
    {
    "data": {
      "timestamps": [
        "2023-12-11T00:00:00",
        "2023-12-12T00:00:00",
        "2023-12-13T00:00:00",
        "2023-12-14T00:00:00",
        "2023-12-15T00:00:00"
      ],
      "prices_avg": [
        206,
        220,
        178,
        177,
        169
      ],
      "item_count": [
        40346,
        80896,
        105927,
        73705,
        73937
      ]
    },
    "location": "Caerleon",
    "item_id": "T4_METALBAR",
    "quality": 1
    }
    ]

How can T4_METALBAR have a price on the Black Market? Why is it identical to Caerleon prices? (and there are quite a lot of such positions).

Perhaps I don't understand something. I will be glad if someone explains to me how it works :)

aquinary commented 4 months ago

Is this an albion price problem or ao data?