Skip to content

Commit

Permalink
drop getTokenPairOhlc.
Browse files Browse the repository at this point in the history
  • Loading branch information
b4rtaz committed Jan 31, 2024
1 parent 0847d4c commit 85238e8
Show file tree
Hide file tree
Showing 10 changed files with 2 additions and 431 deletions.
6 changes: 2 additions & 4 deletions packages/common/evmUtils/generator.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
{
"refs": [
"#/components/schemas/trade/properties/block_timestamp",
"#/components/schemas/erc20Transfer/properties/block_timestamp",
"#/components/schemas/ohlcCandles/items/properties/timestamp"
"#/components/schemas/erc20Transfer/properties/block_timestamp"
],
"nativeType": "Date"
}
Expand Down Expand Up @@ -81,8 +80,7 @@
"getNFTCollectionStats",
"getBlockStats",
"getTokenStats",
"getMultipleTokenPrices",
"getTokenPairOhlc"
"getMultipleTokenPrices"
]
}
}
Expand Down
23 changes: 0 additions & 23 deletions packages/common/evmUtils/src/generated/client/abstractClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ import { GetTokenStatsOperation, GetTokenStatsOperationRequest, GetTokenStatsOpe
import { EvmErc20TokenStat, EvmErc20TokenStatJSON } from '../types/EvmErc20TokenStat';
import { GetBlockStatsOperation, GetBlockStatsOperationRequest, GetBlockStatsOperationRequestJSON } from '../operations/GetBlockStatsOperation';
import { EvmBlockTokenStat, EvmBlockTokenStatJSON } from '../types/EvmBlockTokenStat';
import { GetTokenPairOhlcOperation, GetTokenPairOhlcOperationRequest, GetTokenPairOhlcOperationRequestJSON } from '../operations/GetTokenPairOhlcOperation';
import { EvmOhlcResponse, EvmOhlcResponseJSON } from '../types/EvmOhlcResponse';

export interface OperationV3<Request, RequestJSON, Response, ResponseJSON, Body, BodyJSON> {
operationId: string;
Expand Down Expand Up @@ -201,27 +199,6 @@ export abstract class AbstractClient {
EvmErc20TokenStat,
EvmErc20TokenStatJSON
>(GetTokenStatsOperation),
/**
* @description Get OHLC candle sticks of token pair.
* @param request Request with parameters.
* @param {String} request.token0 The base token address
* @param {String} request.token1 The quote token address
* @param {String} request.exchange The factory name or address of the token exchange
* @param {Object} request.interval The interval of the ohlc candles
* @param {String} request.priceFormat The price format of the ohlc candles (usd, native)
* @param {String} request.fromDate The date from where to get the ohlc candles (format in seconds or datestring accepted by momentjs).
* @param {String} request.toDate Get ohlc candles up until this date (format in seconds or datestring accepted by momentjs).
* @param {Object} [request.chain] The chain to query (optional)
* @param {Number} [request.limit] The maximum number of ohlc candles to return (max 100) (optional)
* @param {String} [request.cursor] The cursor returned in the previous response (used for getting the next page). (optional)
* @returns {Object} Response for the request.
*/
getTokenPairOhlc: this.createEndpoint<
GetTokenPairOhlcOperationRequest,
GetTokenPairOhlcOperationRequestJSON,
EvmOhlcResponse,
EvmOhlcResponseJSON
>(GetTokenPairOhlcOperation),
};
public readonly utils = {
/**
Expand Down

This file was deleted.

1 change: 0 additions & 1 deletion packages/common/evmUtils/src/generated/operations/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@ export * from './GetNFTCollectionStatsOperation';
export * from './GetNFTTokenStatsOperation';
export * from './GetTokenStatsOperation';
export * from './GetBlockStatsOperation';
export * from './GetTokenPairOhlcOperation';
export * from './operations';
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import { GetNFTCollectionStatsOperation } from './GetNFTCollectionStatsOperation
import { GetNFTTokenStatsOperation } from './GetNFTTokenStatsOperation';
import { GetTokenStatsOperation } from './GetTokenStatsOperation';
import { GetBlockStatsOperation } from './GetBlockStatsOperation';
import { GetTokenPairOhlcOperation } from './GetTokenPairOhlcOperation';

export const operations = [
GetNFTTradesOperation,
Expand All @@ -31,5 +30,4 @@ export const operations = [
GetNFTTokenStatsOperation,
GetTokenStatsOperation,
GetBlockStatsOperation,
GetTokenPairOhlcOperation,
];
103 changes: 0 additions & 103 deletions packages/common/evmUtils/src/generated/types/EvmOhlcCandlesItem.ts

This file was deleted.

This file was deleted.

72 changes: 0 additions & 72 deletions packages/common/evmUtils/src/generated/types/EvmOhlcResponse.ts

This file was deleted.

Loading

0 comments on commit 85238e8

Please sign in to comment.