Coinm futures leverageBracket API maintenance margin percentage is incorrect for BTCUSD_PERP

https:// i.imgur .com /sqsYKy3.png

screenshot from Leverage and Margin in Coin-Margined Futures Contracts
accessed on May 2021

Screenshot 2021-05-21 at 22.13.48

The maintenance margin percentage of BTCUSD shown on the website is 0.40%. The screenshot shows margin ratio but I’ve just opened the position so the margin ratio = maintenance margin ratio at that point.

The leverage bracket api - suggests that the maintenance margin percentage of BTCUSD is 1%:

   {
      pair: 'BTCUSD',
      brackets: [
        {
          bracket: 1,
          initialLeverage: 50,
          qtyCap: 5,
          qtyFloor: 0,
          maintMarginRatio: 0.01,
          cum: 0
        },
        {
          bracket: 2,
          initialLeverage: 20,
          qtyCap: 30,
          qtyFloor: 5,
          maintMarginRatio: 0.025,
          cum: 0.075
        },
        {
          bracket: 3,
          initialLeverage: 10,
          qtyCap: 50,
          qtyFloor: 30,
          maintMarginRatio: 0.05,
          cum: 0.825
        },
        {
          bracket: 4,
          initialLeverage: 5,
          qtyCap: 100,
          qtyFloor: 50,
          maintMarginRatio: 0.1,
          cum: 3.325
        },
        {
          bracket: 5,
          initialLeverage: 4,
          qtyCap: 200,
          qtyFloor: 100,
          maintMarginRatio: 0.125,
          cum: 5.825
        },
        {
          bracket: 6,
          initialLeverage: 3,
          qtyCap: 500,
          qtyFloor: 200,
          maintMarginRatio: 0.15,
          cum: 10.825
        },
        {
          bracket: 7,
          initialLeverage: 2,
          qtyCap: 1000,
          qtyFloor: 500,
          maintMarginRatio: 0.25,
          cum: 60.825
        },
        {
          bracket: 8,
          initialLeverage: 1,
          qtyCap: 9223372036854776000,
          qtyFloor: 1000,
          maintMarginRatio: 0.5,
          cum: 310.825
        }
      ]
    }

So therefore either the website is using the old maintenance margin percentage for BTCUSD or the API is incorrect.

Looks like it is just a bug with the v1 api

If you switch to the v2 api the correct maintenance margin is given

/dapi/v1/leverageBracket <- you should make a note in the docs that this is deprecated and gives incorrect values

/dapi/v2/leverageBracket