/** * OpenAPI definition * # Exciting News Hey there, amazing developers! 👋 We\'ve got some fantastic news to share that will make your experience with our product even better. We\'re thrilled to announce the implementation of API-Keys, which brings a new level of control and convenience to your development process. So, let\'s dive right into the details! ✨ ## API-Keys for Enhanced Functionality 🔑 Starting now, we have introduced API-Keys to streamline your interactions with our methods. You might have noticed a slight change while making requests – now, all you need to do is include the parameter `X-API-KEY` in the Header of your request. Simple as that! ## Get Your API-Key in a Snap! ⚡️ Securing your API-Key is a breeze. We\'ve made the process super user-friendly to ensure you can get started quickly. Just head over to our website and fill out a simple form. Once you\'ve done that, your shiny new API-Key will be delivered straight to your email inbox. Easy peasy! 📧 [Get Your API-Key Here](https://api.rarible.org/registration) [Configure SDK with API-key](https://github.com/rarible/sdk#api-querying) ## Unlock the Power of the Rarible Protocol 🔓 As passionate developers, we know you\'re always hungry for knowledge and eager to explore new frontiers. That\'s why we invite you to discover the incredible world of the Rarible Protocol. By visiting our dedicated protocol page, you\'ll gain access to a treasure trove of useful information, tips, and insights that will elevate your development skills to new heights. 🚀 [Explore the Rarible Protocol](https://rarible.org) So, buckle up and get ready for an enhanced development journey with our API-Keys. We\'re excited to see what you\'ll create using our revamped system! 💪🚀 Stay curious, keep innovating, and happy coding! ✨ [P.S. Join our Discord Server to stay up to date and ask questions](https://discord.gg/rarifoundation) * * The version of the OpenAPI document: v0.1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import * as runtime from '../runtime'; import { OlapChartResponse, OlapError, OlapPeriod } from '../models'; export interface GetFloorPriceChartRequest { id: string; period: OlapPeriod; size: number; endTime?: Date; } export interface GetVolumeChartRequest { id: string; period: OlapPeriod; size: number; endTime?: Date; } /** * no description */ export declare class ChartControllerApi extends runtime.BaseAPI { /** * Returns list of historical floor prices aggregated at even intervals in the specified time period - last day, last month etc. Each points represents the aggregated value of the interval after it. The last point represents the current floor price. * Get historical data of floor price for collection for charting purposes */ getFloorPriceChartRaw(requestParameters: GetFloorPriceChartRequest): Promise; /** * Returns list of historical floor prices aggregated at even intervals in the specified time period - last day, last month etc. Each points represents the aggregated value of the interval after it. The last point represents the current floor price. * Get historical data of floor price for collection for charting purposes */ getFloorPriceChart(requestParameters: GetFloorPriceChartRequest): Promise; /** * Given a time period and the desired number of points, returns points which represent total worth of collection sales in the interval after that point. The last point always has no value. * Get historical data of collection volume (total sales worth) for charting purposes */ getVolumeChartRaw(requestParameters: GetVolumeChartRequest): Promise; /** * Given a time period and the desired number of points, returns points which represent total worth of collection sales in the interval after that point. The last point always has no value. * Get historical data of collection volume (total sales worth) for charting purposes */ getVolumeChart(requestParameters: GetVolumeChartRequest): Promise; } export type GetFloorPriceChart200 = { status: 200; value: OlapChartResponse; }; export type GetFloorPriceChart400 = { status: 400; value: OlapError; }; export type GetFloorPriceChart404 = { status: 404; value: OlapError; }; export type GetFloorPriceChart500 = { status: 500; value: OlapError; }; export type GetFloorPriceChartResponse = GetFloorPriceChart200 | GetFloorPriceChart400 | GetFloorPriceChart404 | GetFloorPriceChart500; export type GetVolumeChart200 = { status: 200; value: OlapChartResponse; }; export type GetVolumeChart400 = { status: 400; value: OlapError; }; export type GetVolumeChart404 = { status: 404; value: OlapError; }; export type GetVolumeChart500 = { status: 500; value: OlapError; }; export type GetVolumeChartResponse = GetVolumeChart200 | GetVolumeChart400 | GetVolumeChart404 | GetVolumeChart500;