Type Alias WrapperPlaceOrderParamsExternal

WrapperPlaceOrderParamsExternal: {
    clientOrderId: bignum;
    isBid: boolean;
    lastValidSlot: number;
    numBaseTokens: number;
    orderType: manifest.OrderType;
    tokenPrice: number;
}

Same as the autogenerated WrapperPlaceOrderParams except price here is a number.

Type declaration

  • clientOrderId: bignum

    Client order id used for cancelling orders. Does not need to be unique.

  • isBid: boolean

    Boolean for whether this order is on the bid side.

  • lastValidSlot: number

    Last slot before this order is invalid and will be removed.

  • numBaseTokens: number

    Number of base tokens in the order.

  • orderType: manifest.OrderType

    Type of order (Limit, PostOnly, ...).

  • tokenPrice: number

    Price as float in quote tokens per base tokens.