Interface RestRequestOrderTypeTrailingStopMarket

interface RestRequestOrderTypeTrailingStopMarket {
    nonce: string;
    wallet: string;
    market: string;
    side: OrderSide;
    quantity: string;
    triggerPrice: string;
    triggerType: TriggerType;
    type: "trailingStopMarket";
    delegatedKey?: string;
    clientOrderId?: string;
    reduceOnly?: boolean;
    selfTradePrevention?: SelfTradePrevention;
    callbackRate?: string;
}

Hierarchy (view full)

Properties

nonce: string

User data and trade endpoints requests must include a nonce.

  • MUST be a version 1 UUID
  • Nonces may be supplied with or without hyphens.

Remarks

Version 1 UUIDs encode a timestamp in addition to other unique information, and thus serve both to prevent replay attacks as well as to enforce request timing. As a result, nonces MUST be generated at the time of a request.

wallet: string

The wallet address to use for the request.

market: string

Base-quote pair e.g. 'ETH-USD'

side: OrderSide
  • When specifying, using the OrderSide enum is recommended for inline docs and convenience.

See

enum OrderSide

quantity: string

Order quantity in base terms

triggerPrice: string

Only allowed for certain order types mentioned below, omitted otherwise.

See

enum OrderType

triggerType: TriggerType

Price type for the triggerPrice

  • When specifying, using the TriggerType enum is recommended for inline docs and convenience.
  • Required when triggerPrice is defined.

See

enum TriggerType

type: "trailingStopMarket"
  • When specifying, using the OrderType enum is recommended for inline docs and convenience.

Example

 import { OrderType } from '@idexio/idex-sdk'

const response = await client.createOrder({
// whichever order type you are creating
type: OrderType.market,
// ...other params
})

See

delegatedKey?: string

The delegated key to use for the request, if any.

clientOrderId?: string

Client-specified order id, maximum of 40 bytes

reduceOnly?: boolean

Reduce only orders are only accepted opposite open positions and only reduce an opposite position’s size

selfTradePrevention?: SelfTradePrevention

Self-trade prevention policy, see enum links

See

enum SelfTradePrevention

Default Value

SelfTradePrevention.dc
callbackRate?: string

Inherit Doc