跳至主要内容

Set Trade Auto Repay​

Enable or disable automatic repayment after an eligible spot trade credits a coin to the Unified account. The credited coin can repay its own flexible-rate liability without asset conversion. Trade auto repayment runs only in Cross and Portfolio margin modes; the setting has no effect in Isolated mode. This setting is separate from scheduled auto repayment configured through set-auto-repay-mode, and is disabled by default.

Request Body required
  • autoRepay string required

    Possible values: Value must match regular expression ^[01]$

    "1" enables trade auto repayment; "0" disables it.

Responses

Request accepted; a non-zero retCode indicates a business error.


Schema
  • retCode integer

    Business return code. 0 means success; 34022101 means invalid autoRepay.

  • retMsg string

    Business return message.

  • result object
  • autoRepay string

    Possible values: Value must match regular expression ^[01]$

    Saved switch state; "1" means enabled and "0" means disabled.

  • retExtInfo object

    Extended return information.

  • time int64

    Server timestamp in milliseconds.

Loading...