What a provider says an order would cost before it is placed. Absent fields were not reported.

interface OrderPreview {
    accountId?: string;
    asOf?: number;
    currency?: string;
    estimatedPrice?: number;
    estimatedValue?: number;
    fees?: number;
    marginAvailableAfter?: number;
    marginRequired?: number;
    rejectReason?: string;
    warnings?: readonly string[];
}

Properties

accountId?: string
asOf?: number

UTC seconds.

currency?: string
estimatedPrice?: number
estimatedValue?: number
fees?: number
marginAvailableAfter?: number
marginRequired?: number
rejectReason?: string

Set when the provider would refuse the order, and why.

warnings?: readonly string[]