Margin

Margin Interest Rate History (USER_DATA)

The max interval between startTime and endTime is 30 days.

Weight(IP): 1

get/sapi/v1/margin/interestRateHistory

Query parameters

assetstring required
Example:BTC
vipLevelinteger
Example:1

Defaults to user's vip level

startTimeinteger

UTC timestamp in ms

endTimeinteger

UTC timestamp in ms

recvWindowinteger
Example:5000

The value cannot be greater than 60000

timestampinteger required

UTC timestamp in ms

signaturestring required

Signature

Response

Margin Interest Rate History

assetstring required
dailyInterestRatestring required
timestampinteger required
vipLevelinteger required

Example response

[
  {
    "asset": "BTC",
    "dailyInterestRate": "0.00025000",
    "timestamp": 1611544731000,
    "vipLevel": 1
  }
]

Changes

Changed in 2 of the 26 revisions of this API.618

    • deleted the query request parameter limit

      request-parameter-removed

  • a484ce871a7268See the full diff
    • for the query request parameter endTime, the type/format was changed from integer/ to integer/int64

      request-parameter-type-changed

    • for the query request parameter limit, the type/format was changed from integer/ to integer/int32

      request-parameter-type-changed

    • for the query request parameter recvWindow, the type/format was changed from integer/ to integer/int64

      request-parameter-type-changed

    • for the query request parameter startTime, the type/format was changed from integer/ to integer/int64

      request-parameter-type-changed

    • for the query request parameter timestamp, the type/format was changed from integer/ to integer/int64

      request-parameter-type-changed

    • for the query request parameter vipLevel, the type/format was changed from integer/ to integer/int32

      request-parameter-type-changed

    • the response property code became required for the status 400

      response-property-became-required

    • the response property code became required for the status 401

      response-property-became-required

    • the response property items/asset became required for the status 200

      response-property-became-required

    • the response property items/dailyInterestRate became required for the status 200

      response-property-became-required

    • the response property items/timestamp became required for the status 200

      response-property-became-required

    • the response property items/vipLevel became required for the status 200

      response-property-became-required

    • the response property msg became required for the status 400

      response-property-became-required

    • the response property msg became required for the status 401

      response-property-became-required