Skip to content

somespecialone/sert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Steam Exchange Rate Tracker

Stay updated on Steam market prices and convert currencies with easy!

Made in Ukraine license steam code style: prettier API Test Converter codecov CodeFactor

Note

Web converter converter.somespecial.one 🧮

API sert.somespecial.one

Python API consumer aiosteampy.converter

How it works

Every hour on 9 and 39 minute app checks if rates data in db is expired (updated yesterday or even older) and if true, update currency rates:

  1. Get data of specified item on steammarket for each needed currency.
  2. Calculate exchange rates by comparing item price in previously fetched currencies.
  3. Save data to db 😎.

Warning

It is possible to get max 4 currencies for each schedule wake up due to Steam rate limit.

API

All currency rates eval to 1 USD 💵.

Important

All routes have Expires ⌛ header So please consider using a caching mechanism to avoid unnecessary requests to the service as its resources are limited.

Rates

GET /rates

{
  "EUR": [
    0.91, // rate
    1683121141 // updated ts in seconds
  ],
  "UAH": [
    36.71,
    1683121141
  ]
}

History

GET /history

{
  "EUR": [
    [
      0.91,
      1683121141
    ],
    [
      0.91,
      1682986141
    ],
    // ...
  ],
  "UAH": [
    [
      36.71,
      1683121141
    ],
    [
      36.94,
      1682986141
    ],
    // ...
  ]
}
Param Descr Default
length Max length of history entries array 30
all Show full list of entries false

Examples: