fxs/src/lib/providers/kantox/types.ts

/** @module fx/providers/kantox */

/**
 * Kantox Dynamic Hedging fetch parameters.
 *
 * @access public
 */
export type DhFetchParams = {
  currency?: string;
  counterCurrency?: string;
  marketDirection?: string;
  createdStart?: Date;
  createdEnd?: Date;
  updatedStart?: Date;
  updatedEnd?: Date;
  entryRef?: string;
  positionRef?: string;
  entryStatus?: string;
  page?: number;
  perPage?: number;
};

/**
 * Kantox Dynamic Hedging entry structure.
 *
 * @access public
 */
export type DhEntry = {
  reference: string;
  currency: string;
  amount: number;
  counterCurrency: string;
  amountAfterCancellations: number | null;
  rate: number | null;
  ratePair: string;
  marketDirection: string;
  entryDate: string;
  valueDate: string;
  createdTimeStamp: string;
  entryStatus: string;
  cancellationRatePercent: number | null;
  entryRef: string | null;
  notes: string | null;
  counterValue: number | null;
  positionRef: string;
  conditionalOrderRef: string;
  executionRate: number | null;
  hedgedRate: number | null;
  hedgedRatePair: string;
  deltaResult: number | null;
  orderRef: string;
  executionReason: string;
};