Skip to main content

Adds an assignment program preference

POST 

/v3/assignmentprogram/add

This endpoint adds an assignment program preference

Request

Body

required
    contractType stringrequired

    Type of contract for the assignment program preference. Options can be found in the 'accounts' structure in the Get Wallets /accounts response

    contract string

    A specific contract for this assignment program preference. Required for "flex" contracts if base/quote currencies are not included.

    maxSize number

    The maximum size for an assignment

    maxPosition number

    The maximum position

    acceptLong booleanrequired

    Accept to take long positions

    acceptShort booleanrequired

    Accept to take short positions

    timeFrame stringrequired

    When is the program preference valid

    enabled booleanrequired

    enabled assignment

Responses

Schema
    oneOf
    serverTime string

    Server time in Coordinated Universal Time (UTC)

    result string

    Possible values: [success]

    id number
    participant object
    contractType string
    contract stringnull
    maxSize double
    maxPosition double
    acceptLong boolean
    acceptShort boolean
    timeFrame string

    Possible values: [all, weekdays, weekends]

    enabled boolean
Loading...