Type Alias PrivateRestRequest<T>

PrivateRestRequest<T>: T extends
        | "Balance"
        | "BalanceEx"
        | "CancelAll"
        | "GetWebSocketsToken"
    ? {
        data?: never;
        url: T;
    }
    : T extends
            | "AmendOrder"
            | "ClosedOrders"
            | "Ledgers"
            | "OpenOrders"
            | "OpenPositions"
            | "TradeBalance"
            | "TradesHistory"
            | "TradeVolume"
        ? {
            data?: PrivateRestParams<T>;
            url: T;
        }
        : {
            data: PrivateRestParams<T>;
            url: T;
        }

Type Parameters