### Start Nuxt 3 Development Server Source: https://github.com/autonomouslogic/eve-ref/blob/main/ui/README.md Run this command to start the local development server for your Nuxt 3 application. It typically runs on http://localhost:3000. ```bash npm run dev ``` -------------------------------- ### Install Dependencies with Yarn, npm, or pnpm Source: https://github.com/autonomouslogic/eve-ref/blob/main/ui/README.md Use these commands to install project dependencies based on your preferred package manager (Yarn, npm, or pnpm). ```bash # yarn yarn install ``` ```bash # npm npm install ``` ```bash # pnpm pnpm install ``` -------------------------------- ### Get All Market Structures (Shell) Source: https://github.com/autonomouslogic/eve-ref/blob/main/docs/src/datasets/structures.md Use this command to filter the latest structures file and retrieve only those that are market structures. Requires `curl` and `jq` to be installed. ```shell curl -s https://data.everef.net/structures/structures-latest.v2.json | jq '.[] | select(.is_market_structure)' ``` -------------------------------- ### Download Market Orders with wget on Docker Source: https://github.com/autonomouslogic/eve-ref/blob/main/docs/src/datasets/downloading-datasets.md Use this Docker command to download data with wget if you don't have it installed locally. It maps the current directory for data storage. ```bash docker run --rm -v $(pwd):/data -w /data mwendler/wget -r -np -N -nv --domains=data.everef.net -R index.html --no-check-certificate https://data.everef.net/market-orders/history/2023/ ``` -------------------------------- ### Get API Metadata Source: https://context7.com/autonomouslogic/eve-ref/llms.txt Check the build timestamp and source data versions for the reference data API. Use this to verify data freshness. ```bash # Get API metadata curl "https://ref-data.everef.net/meta" ``` ```json { "build_time": "2024-01-15T12:00:00Z", "sde": { "sha256": "abc123..." }, "esi": { "sha256": "def456..." }, "hoboleaks": { "sha256": "ghi789..." } } ``` -------------------------------- ### Get Blueprint Information Source: https://context7.com/autonomouslogic/eve-ref/llms.txt Access blueprint data including manufacturing activities, materials, products, and required skills. Use this to understand the production process of items. ```bash # Get blueprint information for Sin Blueprint (type ID 22431) curl "https://ref-data.everef.net/blueprints/22431" ``` ```bash # Get all blueprint IDs curl "https://ref-data.everef.net/blueprints" ``` ```json { "blueprint_type_id": 22431, "max_production_limit": 1, "activities": { "manufacturing": { "time": 180000, "materials": { "645": { "type_id": 645, "quantity": 1 }, "11399": { "type_id": 11399, "quantity": 30 } }, "products": { "22430": { "type_id": 22430, "quantity": 1 } }, "required_skills": { "3380": 1 } } } } ``` -------------------------------- ### Get Region Data Source: https://context7.com/autonomouslogic/eve-ref/llms.txt Retrieve region data for universe navigation, including coordinates, faction ownership, and wormhole class. ```bash # Get all region IDs curl "https://ref-data.everef.net/regions" ``` ```bash # Get specific region (The Forge - region 10000002) curl "https://ref-data.everef.net/regions/10000002" ``` ```json { "region_id": 10000002, "name": { "en": "The Forge" }, "description": { "en": "The Forge is the industrial..." }, "faction_id": 500001, "position": { "x": -96538397788928190, "y": 67922390786539940, "z": -8484614931870058 } } ``` -------------------------------- ### Sync Market Orders with rclone Source: https://github.com/autonomouslogic/eve-ref/blob/main/docs/src/datasets/downloading-datasets.md Use this command to sync all market orders from 2023 using rclone with concurrent downloads. Ensure you have rclone installed and configured. ```shell rclone sync -v --checkers 2 --transfers 2 --multi-thread-streams 0 --http-url https://data.everef.net :http:/market-orders/history/2023 pathtosync ``` -------------------------------- ### Download Market Orders with rclone Source: https://context7.com/autonomouslogic/eve-ref/llms.txt Sync all market orders from a specific year using rclone, configuring checkers, transfers, and stream settings for efficient downloads. Ensure rclone is installed and configured. ```bash rclone sync -v \ --checkers 2 \ --transfers 2 \ --multi-thread-streams 0 \ --http-url https://data.everef.net \ :http:/market-orders/history/2023 \ ./market-orders-2023 ``` -------------------------------- ### Load and Filter Market Orders with Pandas Source: https://context7.com/autonomouslogic/eve-ref/llms.txt Load market orders from a compressed CSV file into a pandas DataFrame and filter for specific items in a region. Requires pandas library installed. ```python import pandas as pd df = pd.read_csv('market-orders-latest.csv.bz2', compression='bz2') jita_tritanium = df[(df['type_id'] == 34) & (df['region_id'] == 10000002)] print(f"Lowest sell: {jita_tritanium[~jita_tritanium['is_buy_order']]['price'].min()}") ``` -------------------------------- ### Reference Data API - Regions Source: https://context7.com/autonomouslogic/eve-ref/llms.txt Get region data including coordinates, faction ownership, and wormhole class for universe navigation. ```APIDOC ## GET /regions ### Description Get a list of all region IDs. ### Method GET ### Endpoint https://ref-data.everef.net/regions ## GET /regions/{region_id} ### Description Get details for a specific region. ### Method GET ### Endpoint https://ref-data.everef.net/regions/{region_id} ### Parameters #### Path Parameters - **region_id** (integer) - Required - The ID of the region to retrieve. ### Response #### Success Response (200) - **region_id** (integer) - The ID of the region. - **name** (object) - The name of the region in different languages. - **description** (object) - The description of the region in different languages. - **faction_id** (integer or null) - The ID of the faction that owns the region, or null if not faction-owned. - **position** (object) - The coordinates (x, y, z) of the region in the universe. ### Response Example ```json { "region_id": 10000002, "name": { "en": "The Forge" }, "description": { "en": "The Forge is the industrial..." }, "faction_id": 500001, "position": { "x": -96538397788928190, "y": 67922390786539940, "z": -8484614931870058 } } ``` ``` -------------------------------- ### Get Market History Totals Source: https://context7.com/autonomouslogic/eve-ref/llms.txt Retrieve market history completeness records using the totals.json endpoint. This provides daily record counts for incremental updates. ```bash curl "https://data.everef.net/market-history/totals.json" ``` -------------------------------- ### Get Dogma Attribute Definitions Source: https://context7.com/autonomouslogic/eve-ref/llms.txt Access dogma attribute definitions for EVE Online's item system. Use this to understand attributes like damage, capacity, and speed. ```bash # Get all dogma attribute IDs curl "https://ref-data.everef.net/dogma_attributes" ``` ```bash # Get specific attribute (e.g., capacity - attribute 38) curl "https://ref-data.everef.net/dogma_attributes/38" ``` ```json { "attribute_id": 38, "name": "capacity", "display_name": { "en": "Capacity" }, "description": { "en": "The cargo hold capacity of a ship." }, "default_value": 0.0, "high_is_good": true, "stackable": true, "unit_id": 9 } ``` -------------------------------- ### Get Market Group Data Source: https://context7.com/autonomouslogic/eve-ref/llms.txt Navigate the market hierarchy with market group endpoints. Use these to retrieve child groups and type IDs associated with each market group. ```bash # Get root market groups curl "https://ref-data.everef.net/market_groups/root" ``` ```bash # Get specific market group with child groups curl "https://ref-data.everef.net/market_groups/4" ``` ```bash # Get bundle containing all related data curl "https://ref-data.everef.net/market_groups/4/bundle" ``` ```json { "market_group_id": 4, "name": { "en": "Ships" }, "description": { "en": "Capsuleer spaceships" }, "parent_group_id": null, "icon_id": 1439, "has_types": false, "child_market_group_ids": [5, 379, 380, 381], "type_ids": [] } ``` -------------------------------- ### Get Item Type Data Source: https://context7.com/autonomouslogic/eve-ref/llms.txt Retrieve comprehensive type data for a specific item, including its name, description, attributes, and production details. This is useful for understanding item properties. ```json { "type_id": 645, "name": { "en": "Dominix", "de": "Dominix" }, "description": { "en": "The Dominix is..." }, "group_id": 27, "category_id": 6, "market_group_id": 64, "mass": 103500000.0, "volume": 486000.0, "dogma_attributes": { "4": { "attribute_id": 4, "value": 103500000.0 } }, "required_skills": { "3327": 1, "3328": 5 }, "produced_by_blueprints": { "646": { "blueprint_type_id": 646, "blueprint_activity": "manufacturing" } } } ``` -------------------------------- ### Build Docker Image Locally Source: https://github.com/autonomouslogic/eve-ref/blob/main/docs/src/commands/docker.md Run this command in the project directory to build the Docker image for EVE Ref. ```bash make docker ``` -------------------------------- ### Run EVE Ref API Locally with Docker Source: https://context7.com/autonomouslogic/eve-ref/llms.txt Deploy the EVE Ref API locally using Docker for self-hosted instances. All data is loaded on startup. ```bash # Run the Industry Cost API locally docker run -it --rm -p 8080:8080 autonomouslogic/eve-ref:latest api ``` ```bash # Query local instance curl "http://localhost:8080/v1/industry/cost?product_id=34&runs=1" ``` ```bash # Run with custom environment variables docker run -it --rm \ -e "LOG_LEVEL=debug" \ -p 8080:8080 \ autonomouslogic/eve-ref:latest api ``` -------------------------------- ### Get Mutaplasmid Data Source: https://context7.com/autonomouslogic/eve-ref/llms.txt Access mutaplasmid data for abyssal module creation. This includes dogma modifications and type mappings. ```bash # Get all mutaplasmid IDs curl "https://ref-data.everef.net/mutaplasmids" ``` ```bash # Get specific mutaplasmid details curl "https://ref-data.everef.net/mutaplasmids/52225" ``` ```json { "type_id": 52225, "dogma_modifications": { "20": { "min": 0.8, "max": 1.2, "high_is_good": false }, "30": { "min": 0.85, "max": 1.15, "high_is_good": true } }, "type_mappings": { "47800": { "resulting_type_id": 47800, "applicable_type_ids": [5443, 5445, 5447] } } } ``` -------------------------------- ### Running EVE Ref Locally with Docker Source: https://context7.com/autonomouslogic/eve-ref/llms.txt Instructions for running the EVE Ref API locally using Docker for self-hosted deployments. ```APIDOC ## Running EVE Ref Locally with Docker Run EVE Ref API locally using Docker for self-hosted deployments. All data is loaded on startup with no external database required. ### Command to Run ```bash docker run -it --rm -p 8080:8080 autonomouslogic/eve-ref:latest api ``` ### Querying Local Instance ```bash curl "http://localhost:8080/v1/industry/cost?product_id=34&runs=1" ``` ### Running with Custom Environment Variables ```bash docker run -it --rm \ -e "LOG_LEVEL=debug" \ -p 8080:8080 \ autonomouslogic/eve-ref:latest api ``` ``` -------------------------------- ### Build Nuxt 3 Application for Production Source: https://github.com/autonomouslogic/eve-ref/blob/main/ui/README.md Execute this command to create an optimized production build of your Nuxt 3 application. ```bash npm run build ``` -------------------------------- ### Run Docker Image for Market History Import Source: https://github.com/autonomouslogic/eve-ref/blob/main/docs/src/commands/import-market-history.md Execute the EVE Ref Docker image to import market history data. Configure database connection details and insertion size via environment variables. The 'import-market-history' command initiates the process. ```shell docker run -it --rm \ -e "DATABASE_URL=jdbc:postgresql://localhost:5432/everef" \ -e "DATABASE_USERNAME=everef" \ -e "DATABASE_PASSWORD=password1" \ -e "INSERT_SIZE=100000" \ autonomouslogic/eve-ref:latest \ import-market-history ``` -------------------------------- ### Preview Nuxt 3 Production Build Locally Source: https://github.com/autonomouslogic/eve-ref/blob/main/ui/README.md Use this command to locally preview the production build of your Nuxt 3 application before deploying it. ```bash npm run preview ``` -------------------------------- ### Run EVE Ref API Locally Source: https://github.com/autonomouslogic/eve-ref/blob/main/docs/src/api/index.md Use this command to run the EVE Ref API locally using Docker. No special configuration or local dependencies are required. ```bash docker run -it --rm autonomouslogic/eve-ref:latest api ``` -------------------------------- ### Run EVE Ref Docker Container Source: https://github.com/autonomouslogic/eve-ref/blob/main/docs/src/commands/docker.md Use this command to run the latest EVE Ref Docker image. Replace 'command' with the desired EVE Ref command. ```bash docker run autonomouslogic/eve-ref:latest command ``` -------------------------------- ### Download Reference Data with wget Source: https://context7.com/autonomouslogic/eve-ref/llms.txt Download the latest reference data archive using wget. The -N flag ensures that only newer files are downloaded. ```bash wget -N https://data.everef.net/reference-data/reference-data-latest.tar.xz ``` -------------------------------- ### Download Market Orders with wget Source: https://github.com/autonomouslogic/eve-ref/blob/main/docs/src/datasets/downloading-datasets.md Download market orders for a specific year using wget. This command uses recursive retrieval and timestamp checking to efficiently download data. ```bash wget -r -np -N -nv --domains=data.everef.net -R index.html https://data.everef.net/market-orders/history/2023/ ``` -------------------------------- ### Download Market History with rclone Docker Source: https://context7.com/autonomouslogic/eve-ref/llms.txt Use rclone within a Docker container to sync market history for a specific year. Mount the current directory to persist downloaded data. ```bash docker run --rm -v $(pwd):/data -w /data rclone/rclone sync -v \ --checkers 2 \ --transfers 2 \ --http-url https://data.everef.net \ :http:/market-history/2024 \ ./market-history-2024 ``` -------------------------------- ### Mount EVE Ref Data with rclone Source: https://context7.com/autonomouslogic/eve-ref/llms.txt Mount the data.everef.net filesystem locally using rclone for direct access to datasets. Configure attribute timeout, directory cache time, and VFS cache mode for performance. ```bash rclone mount \ --attr-timeout 1m \ --dir-cache-time 1m \ --vfs-cache-mode full \ --http-url https://data.everef.net \ :http:/ \ ./everef-data ``` -------------------------------- ### Run Specific EVE Ref Commands Source: https://context7.com/autonomouslogic/eve-ref/llms.txt Execute specific commands within the autonomouslogic/eve-ref Docker image to build data, scrape market orders, or import market history. ```bash docker run autonomouslogic/eve-ref:latest build-ref-data ``` ```bash docker run autonomouslogic/eve-ref:latest scrape-market-orders ``` ```bash docker run autonomouslogic/eve-ref:latest import-market-history ``` -------------------------------- ### Download Public Contracts with wget Docker Source: https://context7.com/autonomouslogic/eve-ref/llms.txt Use wget within a Docker container to download public contracts. This command bypasses SSL certificate checks and downloads recursively. ```bash docker run --rm -v $(pwd):/data -w /data mwendler/wget \ -r -np -N -nv \ --domains=data.everef.net \ -R index.html \ --no-check-certificate \ https://data.everef.net/public-contracts/ ``` -------------------------------- ### Download Latest Market Orders CSV Source: https://context7.com/autonomouslogic/eve-ref/llms.txt Download the latest market orders snapshot as a compressed CSV file using curl. The file is available in bz2 format. ```bash curl -O https://data.everef.net/market-orders/market-orders-latest.csv.bz2 ``` -------------------------------- ### Reference Data API - Metadata Source: https://context7.com/autonomouslogic/eve-ref/llms.txt Check the build timestamp and source data versions for the reference data API to verify data freshness. ```APIDOC ## GET /meta ### Description Get API metadata, including build time and source data versions. ### Method GET ### Endpoint https://ref-data.everef.net/meta ### Response #### Success Response (200) - **build_time** (string) - The timestamp when the API data was built. - **sde** (object) - Information about the Static Data Export (SDE) source. - **sha256** (string) - The SHA256 hash of the SDE data. - **esi** (object) - Information about the ESI (EVE Swagger Interface) source. - **sha256** (string) - The SHA256 hash of the ESI data. - **hoboleaks** (object) - Information about the Hoboleaks source. - **sha256** (string) - The SHA256 hash of the Hoboleaks data. ### Response Example ```json { "build_time": "2024-01-15T12:00:00Z", "sde": { "sha256": "abc123..." }, "esi": { "sha256": "def456..." }, "hoboleaks": { "sha256": "ghi789..." } } ``` ``` -------------------------------- ### Configure Docker Container with Environment Variables Source: https://github.com/autonomouslogic/eve-ref/blob/main/docs/src/commands/docker.md Environment variables are used to configure the Docker container. They can be set using the -e flag or an .env file with the --env-file flag. ```bash -e "VARIABLE=value" ``` -------------------------------- ### Mount Everef Data with rclone Source: https://github.com/autonomouslogic/eve-ref/blob/main/docs/src/datasets/downloading-datasets.md Mount the Everef dataset directly onto your file system using rclone. This command configures caching and concurrent transfer settings for efficient access. ```shell rclone mount --attr-timeout 1m --dir-cache-time 1m --vfs-cache-mode full --checkers 2 --transfers 2 --multi-thread-streams 0 --http-url https://data.everef.net :http:/ pathtomount ``` -------------------------------- ### Reference Data API - Blueprints Source: https://context7.com/autonomouslogic/eve-ref/llms.txt Access blueprint data including manufacturing activities, materials, products, and required skills for all EVE Online blueprints. ```APIDOC ## GET /blueprints/{type_id} ### Description Get blueprint information for a specific blueprint type ID. ### Method GET ### Endpoint https://ref-data.everef.net/blueprints/{type_id} ### Parameters #### Path Parameters - **type_id** (integer) - Required - The type ID of the blueprint. ### Response #### Success Response (200) - **blueprint_type_id** (integer) - The type ID of the blueprint. - **max_production_limit** (integer) - The maximum number of items that can be produced from this blueprint in one go. - **activities** (object) - Contains details about the activities required for the blueprint. - **manufacturing** (object) - Details for the manufacturing activity. - **time** (integer) - The time in seconds required for manufacturing. - **materials** (object) - An object where keys are material type IDs and values are objects containing `type_id` and `quantity`. - **products** (object) - An object where keys are product type IDs and values are objects containing `type_id` and `quantity`. - **required_skills** (object) - An object where keys are skill type IDs and values are the required skill level. ### Response Example ```json { "blueprint_type_id": 22431, "max_production_limit": 1, "activities": { "manufacturing": { "time": 180000, "materials": { "645": { "type_id": 645, "quantity": 1 }, "11399": { "type_id": 11399, "quantity": 30 } }, "products": { "22430": { "type_id": 22430, "quantity": 1 } }, "required_skills": { "3380": 1 } } } } ``` ## GET /blueprints ### Description Get a list of all blueprint IDs available in the system. ### Method GET ### Endpoint https://ref-data.everef.net/blueprints ### Response #### Success Response (200) - Returns a list of blueprint type IDs. ``` -------------------------------- ### Sync Market Orders with rclone on Docker Source: https://github.com/autonomouslogic/eve-ref/blob/main/docs/src/datasets/downloading-datasets.md This command allows syncing data with rclone when running inside a Docker container. It mounts the current directory to persist downloaded data. ```shell docker run --rm -v $(pwd):/data -w /data rclone/rclone sync -v --checkers 2 --transfers 2 --multi-thread-streams 0 --http-url https://data.everef.net :http:/market-orders/history/2023 pathtosyncto ``` -------------------------------- ### Retrieve EVE Online Type Information Source: https://context7.com/autonomouslogic/eve-ref/llms.txt Access detailed information about EVE Online inventory types via the Reference Data API. This includes dogma attributes, blueprint production details, skill requirements, and market data, merging information from SDE, ESI, and Hoboleaks. ```bash # Get detailed information about Tritanium (type ID 34) curl "https://ref-data.everef.net/types/34" # Get all type IDs curl "https://ref-data.everef.net/types" # Get a bundle with related data for a type curl "https://ref-data.everef.net/types/645/bundle" ``` -------------------------------- ### Download Killmails with wget Source: https://context7.com/autonomouslogic/eve-ref/llms.txt Recursively download killmail data using wget. This command downloads all files within the specified directory, excluding index files. ```bash wget -r -np -N -nv \ --domains=data.everef.net \ -R index.html \ https://data.everef.net/killmails/ ``` -------------------------------- ### Download Specific Day's Market History Source: https://context7.com/autonomouslogic/eve-ref/llms.txt Download the market history CSV file for a specific date using curl. The file is compressed using bz2. ```bash curl -O "https://data.everef.net/market-history/2024/market-history-2024-01-15.csv.bz2" ``` -------------------------------- ### Calculate Manufacturing and Invention Costs Source: https://context7.com/autonomouslogic/eve-ref/llms.txt Use the Industry Cost API to calculate manufacturing and invention costs for EVE Online blueprints. Specify product ID, runs, efficiency, structure type, and other modifiers for accurate results. The response includes detailed cost breakdowns and time estimates. ```bash # Calculate manufacturing cost for 8 Sin Black Ops battleships # with ME/TE 4/4, at a Sotiyo in low-sec with manufacturing rigs curl "https://api.everef.net/v1/industry/cost?product_id=22430&runs=8&me=4&te=4&structure_type_id=35827&security=LOW_SEC&rig_id=37180&rig_id=37183&system_cost_bonus=-0.5&manufacturing_cost=0.0129&facility_tax=0.02" # Response includes manufacturing and invention costs { "manufacturing": { "22430": { "product_id": 22430, "runs": 8, "time": "PT194H19M33S", "materials": { "645": { "type_id": 645, "quantity": 8, "cost": 1912274057.68 }, "21025": { "type_id": 21025, "quantity": 22, "cost": 624650221.14 } }, "estimated_item_value": 6147769967, "total_job_cost": 406536659, "total_material_cost": 8487211612.94, "total_cost": 8893748271.94, "total_cost_per_unit": 1111718533.99 } }, "invention": { "22431": { "product_id": 22431, "runs": 24.935064935064936, "probability": 0.3208333333333333, "me": 2, "te": 4, "total_cost": 173415614.34 } } } ``` -------------------------------- ### Reference Data API - Types Source: https://context7.com/autonomouslogic/eve-ref/llms.txt Retrieves detailed information about EVE Online inventory types, merging data from SDE, ESI, and Hoboleaks. ```APIDOC ## GET /types/{type_id} ### Description Retrieve detailed information about a specific EVE Online inventory type, including dogma attributes, blueprint production, skill requirements, and market data. The API merges SDE, ESI, and Hoboleaks data into a unified format. ### Method GET ### Endpoint https://ref-data.everef.net/types/{type_id} ### Parameters #### Path Parameters - **type_id** (integer) - Required - The ID of the inventory type. ### Response #### Success Response (200) - Returns a detailed JSON object for the specified type. ### Request Example ```bash curl "https://ref-data.everef.net/types/34" ``` ## GET /types ### Description Retrieve a list of all EVE Online inventory type IDs. ### Method GET ### Endpoint https://ref-data.everef.net/types ### Response #### Success Response (200) - Returns a JSON array of type IDs. ### Request Example ```bash curl "https://ref-data.everef.net/types" ``` ## GET /types/{type_id}/bundle ### Description Retrieve a bundle of related data for a specific EVE Online inventory type. ### Method GET ### Endpoint https://ref-data.everef.net/types/{type_id}/bundle ### Parameters #### Path Parameters - **type_id** (integer) - Required - The ID of the inventory type. ### Response #### Success Response (200) - Returns a JSON object containing bundled data for the specified type. ### Request Example ```bash curl "https://ref-data.everef.net/types/645/bundle" ``` ``` -------------------------------- ### Calculate Invention Costs Source: https://github.com/autonomouslogic/eve-ref/blob/main/docs/src/api/industry-cost.md Use this endpoint to calculate the costs associated with invention runs. Specify product, structure, decryptor, and system cost index details. ```http https://api.everef.net/v1/industry/cost?product_id=2622&runs=10&structure_type_id=35825&decryptor_id=34206&invention_cost=0.1171&facility_tax=0.005 ``` -------------------------------- ### Decompress and Preview Market Orders CSV Source: https://context7.com/autonomouslogic/eve-ref/llms.txt Decompress a bz2 compressed CSV file and display the first few lines using bzcat and head. This is useful for quickly inspecting the data. ```bash bzcat market-orders-latest.csv.bz2 | head -5 ``` -------------------------------- ### Search EVE Online Data Source: https://context7.com/autonomouslogic/eve-ref/llms.txt Use the Search API to find EVE Online inventory types, market groups, categories, and groups by name. Results include relevance scoring and direct links to the EVE Ref website and reference data API. ```bash # Search for items containing "tritanium" curl "https://api.everef.net/v1/search?q=tritanium" # Response with search results { "entries": [ { "id": 34, "type": "inventory_type", "title": "Tritanium", "language": "en", "relevance": 0, "urls": { "everef": "https://everef.net/types/34", "reference_data": "https://ref-data.everef.net/types/34" } } ] } ``` -------------------------------- ### Create Market History Table Schema Source: https://github.com/autonomouslogic/eve-ref/blob/main/docs/src/commands/import-market-history.md SQL schema definition for the 'market_history' table. Includes primary key and indexes for efficient querying. This schema can be created manually if Flyway migrations are disabled. ```sql create table market_history ( date date not null, region_id integer not null, type_id integer not null, average numeric(20, 2) not null, highest numeric(20, 2) not null, lowest numeric(20, 2) not null, volume bigint not null, order_count integer not null, http_last_modified timestamp with time zone, primary key (date, region_id, type_id) ); create index market_history_region_id_type_id on market_history (region_id, type_id); create index market_history_type_id on market_history (type_id); ``` -------------------------------- ### Calculate Invention Costs with Decryptors Source: https://context7.com/autonomouslogic/eve-ref/llms.txt Calculate invention costs for T2 blueprint creation using the Industry Cost API, including decryptor modifiers. The API automatically computes expected runs, copies, and probability-weighted costs. Specify product ID, runs, structure type, decryptor ID, and tax rates. ```bash # Calculate 10 invention runs of Inferno Fury Cruise Missile Blueprint # with Symmetry Decryptor at a Raitaru with 0.5% tax and 11.71% system cost curl "https://api.everef.net/v1/industry/cost?product_id=2622&runs=10&structure_type_id=35825&decryptor_id=34206&invention_cost=0.1171&facility_tax=0.005" # Response with invention-specific metrics { "invention": { "2622": { "product_id": 2622, "runs": 10, "time": "PT136H40M23S", "materials": { "20418": { "type_id": 20418, "quantity": 10, "cost": 1043000.50 }, "20420": { "type_id": 20420, "quantity": 10, "cost": 1020634.60 }, "34206": { "type_id": 34206, "quantity": 10, "cost": 4285722.00 } }, "probability": 0.49583333333333335, "runs_per_copy": 12, "expected_copies": 4.958333333333334, "expected_units": 297500.00000000006, "me": 3, "te": 12, "avg_cost_per_unit": 21.52 } } } ```