ESI\Client\MarketApi

All URIs are relative to https://esi.tech.ccp.is/latest

Method HTTP request Description
getMarketsPrices GET /markets/prices/ List market prices
getMarketsRegionIdHistory GET /markets/{region_id}/history/ List historical market statistics in a region
getMarketsRegionIdOrders GET /markets/{region_id}/orders/ List orders in a region
getMarketsStructuresStructureId GET /markets/structures/{structure_id}/ List orders in a structure

getMarketsPrices

\ESI\Client\Model\GetMarketsPrices200Ok[] getMarketsPrices($datasource)

List market prices

Return a list of prices --- Alternate route: /v1/markets/prices/ Alternate route: /legacy/markets/prices/ Alternate route: /dev/markets/prices/ --- This route is cached for up to 3600 seconds

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new ESI\Client\Api\MarketApi();
$datasource = "tranquility"; // string | The server name you would like data from

try {
    $result = $api_instance->getMarketsPrices($datasource);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MarketApi->getMarketsPrices: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
datasource string The server name you would like data from [optional] [default to tranquility]

Return type

\ESI\Client\Model\GetMarketsPrices200Ok[]

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getMarketsRegionIdHistory

\ESI\Client\Model\GetMarketsRegionIdHistory200Ok[] getMarketsRegionIdHistory($region_id, $type_id, $datasource)

List historical market statistics in a region

Return a list of historical market statistics for the specified type in a region --- Alternate route: /v1/markets/{region_id}/history/ Alternate route: /legacy/markets/{region_id}/history/ Alternate route: /dev/markets/{region_id}/history/ --- This route is cached for up to 3600 seconds

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new ESI\Client\Api\MarketApi();
$region_id = 56; // int | Return statistics in this region
$type_id = 56; // int | Return statistics for this type
$datasource = "tranquility"; // string | The server name you would like data from

try {
    $result = $api_instance->getMarketsRegionIdHistory($region_id, $type_id, $datasource);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MarketApi->getMarketsRegionIdHistory: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
region_id int Return statistics in this region
type_id int Return statistics for this type
datasource string The server name you would like data from [optional] [default to tranquility]

Return type

\ESI\Client\Model\GetMarketsRegionIdHistory200Ok[]

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getMarketsRegionIdOrders

\ESI\Client\Model\GetMarketsRegionIdOrders200Ok[] getMarketsRegionIdOrders($region_id, $order_type, $type_id, $page, $datasource)

List orders in a region

Return a list of orders in a region --- Alternate route: /v1/markets/{region_id}/orders/ Alternate route: /legacy/markets/{region_id}/orders/ Alternate route: /dev/markets/{region_id}/orders/ --- This route is cached for up to 300 seconds

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$api_instance = new ESI\Client\Api\MarketApi();
$region_id = 56; // int | Return orders in this region
$order_type = "all"; // string | Filter buy/sell orders, return all orders by default. If you query without type_id, we always return both buy and sell orders.
$type_id = 56; // int | Return orders only for this type
$page = 1; // int | Which page to query, only used for querying without type_id. Starting at 1
$datasource = "tranquility"; // string | The server name you would like data from

try {
    $result = $api_instance->getMarketsRegionIdOrders($region_id, $order_type, $type_id, $page, $datasource);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MarketApi->getMarketsRegionIdOrders: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
region_id int Return orders in this region
order_type string Filter buy/sell orders, return all orders by default. If you query without type_id, we always return both buy and sell orders. [default to all]
type_id int Return orders only for this type [optional]
page int Which page to query, only used for querying without type_id. Starting at 1 [optional] [default to 1]
datasource string The server name you would like data from [optional] [default to tranquility]

Return type

\ESI\Client\Model\GetMarketsRegionIdOrders200Ok[]

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getMarketsStructuresStructureId

\ESI\Client\Model\GetMarketsStructuresStructureId200Ok[] getMarketsStructuresStructureId($structure_id, $page, $datasource)

List orders in a structure

Return all orders in a structure --- Alternate route: /v1/markets/structures/{structure_id}/ Alternate route: /legacy/markets/structures/{structure_id}/ Alternate route: /dev/markets/structures/{structure_id}/ --- This route is cached for up to 300 seconds

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure OAuth2 access token for authorization: evesso
ESI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$api_instance = new ESI\Client\Api\MarketApi();
$structure_id = 789; // int | Return orders in this structure
$page = 1; // int | Which page to query, starting at 1
$datasource = "tranquility"; // string | The server name you would like data from

try {
    $result = $api_instance->getMarketsStructuresStructureId($structure_id, $page, $datasource);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MarketApi->getMarketsStructuresStructureId: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
structure_id int Return orders in this structure
page int Which page to query, starting at 1 [optional] [default to 1]
datasource string The server name you would like data from [optional] [default to tranquility]

Return type

\ESI\Client\Model\GetMarketsStructuresStructureId200Ok[]

Authorization

evesso

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]