/* tslint:disable */ /* eslint-disable */ /** * * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { mapValues } from '../runtime'; /** * * @export * @interface ReqGetPositionFunding */ export interface ReqGetPositionFunding { /** * made optional to support header auth clients * @type {string} * @memberof ReqGetPositionFunding */ auth?: string; /** * * @type {number} * @memberof ReqGetPositionFunding */ account_index: number; /** * * @type {number} * @memberof ReqGetPositionFunding */ market_id?: number; /** * * @type {string} * @memberof ReqGetPositionFunding */ cursor?: string; /** * * @type {number} * @memberof ReqGetPositionFunding */ limit: number; /** * * @type {string} * @memberof ReqGetPositionFunding */ side?: ReqGetPositionFundingSideEnum; } /** * @export */ export const ReqGetPositionFundingSideEnum = { Long: 'long', Short: 'short', All: 'all' } as const; export type ReqGetPositionFundingSideEnum = typeof ReqGetPositionFundingSideEnum[keyof typeof ReqGetPositionFundingSideEnum]; /** * Check if a given object implements the ReqGetPositionFunding interface. */ export function instanceOfReqGetPositionFunding(value: object): value is ReqGetPositionFunding { if (!('account_index' in value) || value['account_index'] === undefined) return false; if (!('limit' in value) || value['limit'] === undefined) return false; return true; } export function ReqGetPositionFundingFromJSON(json: any): ReqGetPositionFunding { return ReqGetPositionFundingFromJSONTyped(json, false); } export function ReqGetPositionFundingFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReqGetPositionFunding { if (json == null) { return json; } return { 'auth': json['auth'] == null ? undefined : json['auth'], 'account_index': json['account_index'], 'market_id': json['market_id'] == null ? undefined : json['market_id'], 'cursor': json['cursor'] == null ? undefined : json['cursor'], 'limit': json['limit'], 'side': json['side'] == null ? undefined : json['side'], }; } export function ReqGetPositionFundingToJSON(value?: ReqGetPositionFunding | null): any { if (value == null) { return value; } return { 'auth': value['auth'], 'account_index': value['account_index'], 'market_id': value['market_id'], 'cursor': value['cursor'], 'limit': value['limit'], 'side': value['side'], }; }