apraisal endpoint
This commit is contained in:
@@ -107,6 +107,12 @@ export interface MarketHistoryResponse {
|
||||
'orderCount': number;
|
||||
'volume': number;
|
||||
}
|
||||
export interface MarketPriceResponse {
|
||||
'marketTypeId': number;
|
||||
'buy': number;
|
||||
'sell': number;
|
||||
'orderCount': number;
|
||||
}
|
||||
export interface MarketScanResponse {
|
||||
'marketTypeId': number;
|
||||
'q1': number;
|
||||
@@ -1268,6 +1274,43 @@ export class LedgerApi extends BaseAPI {
|
||||
*/
|
||||
export const MarketApiAxiosParamCreator = function (configuration?: Configuration) {
|
||||
return {
|
||||
/**
|
||||
*
|
||||
* @summary Return the current Jita order book (highest buy, lowest sell, order count) for each requested market type
|
||||
* @param {Array<number>} types Market type ids to price, e.g. types=34,35
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
currentPrices: async (types: Array<number>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
||||
// verify required parameter 'types' is not null or undefined
|
||||
assertParamExists('currentPrices', 'types', types)
|
||||
const localVarPath = `/market/prices`;
|
||||
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
||||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
||||
let baseOptions;
|
||||
if (configuration) {
|
||||
baseOptions = configuration.baseOptions;
|
||||
}
|
||||
|
||||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
||||
const localVarHeaderParameter = {} as any;
|
||||
const localVarQueryParameter = {} as any;
|
||||
|
||||
if (types) {
|
||||
localVarQueryParameter['types'] = types;
|
||||
}
|
||||
|
||||
localVarHeaderParameter['Accept'] = '*/*';
|
||||
|
||||
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
||||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
||||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
||||
|
||||
return {
|
||||
url: toPathString(localVarUrlObj),
|
||||
options: localVarRequestOptions,
|
||||
};
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary Find the market history of a type, most recent first
|
||||
@@ -1361,6 +1404,19 @@ export const MarketApiAxiosParamCreator = function (configuration?: Configuratio
|
||||
export const MarketApiFp = function(configuration?: Configuration) {
|
||||
const localVarAxiosParamCreator = MarketApiAxiosParamCreator(configuration)
|
||||
return {
|
||||
/**
|
||||
*
|
||||
* @summary Return the current Jita order book (highest buy, lowest sell, order count) for each requested market type
|
||||
* @param {Array<number>} types Market type ids to price, e.g. types=34,35
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async currentPrices(types: Array<number>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MarketPriceResponse>>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.currentPrices(types, options);
|
||||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
||||
const localVarOperationServerBasePath = operationServerMap['MarketApi.currentPrices']?.[localVarOperationServerIndex]?.url;
|
||||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary Find the market history of a type, most recent first
|
||||
@@ -1399,6 +1455,16 @@ export const MarketApiFp = function(configuration?: Configuration) {
|
||||
export const MarketApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
||||
const localVarFp = MarketApiFp(configuration)
|
||||
return {
|
||||
/**
|
||||
*
|
||||
* @summary Return the current Jita order book (highest buy, lowest sell, order count) for each requested market type
|
||||
* @param {Array<number>} types Market type ids to price, e.g. types=34,35
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
currentPrices(types: Array<number>, options?: RawAxiosRequestConfig): AxiosPromise<Array<MarketPriceResponse>> {
|
||||
return localVarFp.currentPrices(types, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
*
|
||||
* @summary Find the market history of a type, most recent first
|
||||
@@ -1429,6 +1495,17 @@ export const MarketApiFactory = function (configuration?: Configuration, basePat
|
||||
* MarketApi - object-oriented interface
|
||||
*/
|
||||
export class MarketApi extends BaseAPI {
|
||||
/**
|
||||
*
|
||||
* @summary Return the current Jita order book (highest buy, lowest sell, order count) for each requested market type
|
||||
* @param {Array<number>} types Market type ids to price, e.g. types=34,35
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
public currentPrices(types: Array<number>, options?: RawAxiosRequestConfig) {
|
||||
return MarketApiFp(this.configuration).currentPrices(types, options).then((request) => request(this.axios, this.basePath));
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @summary Find the market history of a type, most recent first
|
||||
|
||||
Reference in New Issue
Block a user