API - Eve¶
-
eve.views.fetch_price_data(type_ids, hours=24, regions=10000002, system=None)[source]¶ Get item prices from evecentral.com
Parameters: - type_ids (list) – List of item type IDs
- hours (int) – Statistics for market orders with a reported time up to X hours hold; Defaults to 24
- regions (int) – Restrict statistics to a region; Can be specified more than once
- system (int) – Restrict statistics to a system; defaults to Jita
Returns: Dictionary of item price data
Return type: dict
Sample dict format:
>>> { 11642: { 'all': { 'avg': 1242880.04, 'max': 1597999.98, 'median': 1304939.99, 'min': 801024.01, 'percentile': 938715.23, 'stddev': 139305.88, 'volume': 7222 }, 'buy': { 'avg': 1120692.62, 'max': 1165830.78, 'median': 1165827.45, 'min': 801024.01, 'percentile': 1165830.78, 'stddev': 92784.58, 'volume': 2279 }, 'id': 11642, 'sell': { 'avg': 1299215.29, 'max': 1597999.98, 'median': 1280880.0, 'min': 1280878.99, 'percentile': 1280879.95, 'stddev': 113823.7, 'volume': 4943 } } }
-
eve.views.save_price_data(price_data)[source]¶ Prepares dict of item price data for saving to Price model
Parameters: price_data (dict) – Dictionary of pricing data Returns: List of tuples of PriceobjectsReturn type: list
-
class
eve.models.Constellation(*args, **kwargs)[source]¶ A model to represent a single Constellation