Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PoE Ninja data #13

Open
6 tasks
AyronK opened this issue Jan 13, 2020 · 0 comments
Open
6 tasks

PoE Ninja data #13

AyronK opened this issue Jan 13, 2020 · 0 comments
Milestone

Comments

@AyronK
Copy link
Owner

AyronK commented Jan 13, 2020

  • Fetch data from PoE Ninja once upon a time (e.g. every 15 minutes).
  • Fetch all data and store in some sort of cached dictionary.
  • Display chaos equivalent and confidence
  • Expose currency exchange method like Convert(10, 'chaos', 'exa')
  • Expose method like GetPrice(string name) and for now return null if there is more then one match
  • Do not throw exception when api is down (just return empty things and handle not rendering)

Deserialize just important properties.

https://poe.ninja/api/data/itemoverview?league=Metamorph&type=UniqueArmour
https://poe.ninja/api/data/currencyoverview?league=Metamorph&type=Currency
  { 'overview': 'currency', 'type': 'Currency' },
  { 'overview': 'currency', 'type': 'Fragment' },
  { 'overview': 'item', 'type': 'Watchstone' },
  { 'overview': 'item', 'type': 'Oil' },
  { 'overview': 'item', 'type': 'Incubator' },
  { 'overview': 'item', 'type': 'Scarab' },
  { 'overview': 'item', 'type': 'Fossil' },
  { 'overview': 'item', 'type': 'Resonator' },
  { 'overview': 'item', 'type': 'Essence' },
  { 'overview': 'item', 'type': 'DivinationCard' },
  { 'overview': 'item', 'type': 'Prophecy' },
  { 'overview': 'item', 'type': 'SkillGem' },
  { 'overview': 'item', 'type': 'Base'type'' },
  { 'overview': 'item', 'type': 'HelmetEnchant' },
  { 'overview': 'item', 'type': 'UniqueMap' },
  { 'overview': 'item', 'type': 'Map' },
  { 'overview': 'item', 'type': 'UniqueJewel' },
  { 'overview': 'item', 'type': 'UniqueFlask' },
  { 'overview': 'item', 'type': 'UniqueWeapon' },
  { 'overview': 'item', 'type': 'UniqueArmour' },
  { 'overview': 'item', 'type': 'UniqueAccessory' },
  { 'overview': 'item', 'type': 'Beast' }
 {
            "currencyTypeName": "Mirror of Kalandra",
            "pay": {
                "id": 0,
                "league_id": 74,
                "pay_currency_id": 22,
                "get_currency_id": 1,
                "sample_time_utc": "2020-01-13T05:36:47.9770861Z",
                "count": 49,
                "value": 0.0000441969661538461538461539,
                "data_point_count": 1,
                "includes_secondary": true // means it is followed by 'k' like 22.0k
            },
            "receive": {
                "id": 0,
                "league_id": 74,
                "pay_currency_id": 1,
                "get_currency_id": 22,
                "sample_time_utc": "2020-01-13T05:36:47.9770861Z",
                "count": 75,
                "value": 22015,
                "data_point_count": 1,
                "includes_secondary": true
            },
            "paySparkLine": {
                "data": [
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    13.13
                ],
                "totalChange": 13.13
            },
            "receiveSparkLine": {
                "data": [
                    0,
                    -3.35,
                    2.73,
                    11.65,
                    6.54,
                    7.95,
                    11.34
                ],
                "totalChange": 11.34
            },
            "chaosEquivalent": 22320.49,
            "lowConfidencePaySparkLine": {
                "data": [
                    0,
                    0,
                    0,
                    0,
                    0,
                    0,
                    13.13
                ],
                "totalChange": 13.13
            },
            "lowConfidenceReceiveSparkLine": {
                "data": [
                    0,
                    -3.35,
                    2.73,
                    11.65,
                    6.54,
                    7.95,
                    11.34
                ],
                "totalChange": 11.34
            },
            "detailsId": "mirror-of-kalandra"
        }
@AyronK AyronK added this to the 0.2.0 milestone Jan 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant