??API????-????4

??binance???????????????????????????

???????????

??:

 

{

    "symbol": "BTCUSDT",                // ???

    "markPrice": "11793.63104562",      // ????

    "indexPrice": "11781.80495970",     // ????

    "estimatedSettlePrice": "11781.16138815",  // ?????,???????????????

    "lastFundingRate": "0.00038246",    // ?????????

    "nextFundingTime": 1597392000000,   // ???????

    "interestRate": "0.00010000",       // ????????

    "time": 1597370495002               // ????

}

????symbol???

 

[

    {

        "symbol": "BTCUSDT",            // ???

        "markPrice": "11793.63104562",  // ????

        "indexPrice": "11781.80495970", // ????

        "estimatedSettlePrice": "11781.16138815",  // ?????,???????????????

        "lastFundingRate": "0.00038246",    // ???????????

        "nextFundingTime": 1597392000000,   // ???????

        "interestRate": "0.00010000",       // ????????

        "time": 1597370495002               // ????

    }

]

GET /fapi/v1/premiumIndex

 

?????????????

 

??: ?symbol?1???symbol?10

 

??:

 

??         ??         ????         ??

symbol     STRING    NO   ???

????????

??:

 

[  

    {

        "symbol": "BTCUSDT",            // ???

        "fundingTime": 1698768000000,   // ????

        "fundingRate": "0.00010000",    // ?????

        "markPrice": "34287.54619963"   // ?????????

    },

    {

        "symbol": "BTCUSDT",

        "fundingTime": 1698796800000,

        "fundingRate": "0.00010000",

        "markPrice": "34651.40000000"

    }

]

GET /fapi/v1/fundingRate

 

???? 500/5min/IP

 

??:

 

??         ??         ????         ??

symbol     STRING    NO   ???

startTime         LONG        NO   ????

endTime  LONG        NO   ????

limit INT   NO   ???:100 ???:1000

?? startTime ? endTime ????, ???? limit ???.

?? startTime ? endTime ???????? limit, ?? startTime + limit???????

????????

??:

 

[

    {

        "symbol": "BLZUSDT",

        "adjustedFundingRateCap": "0.02500000",

        "adjustedFundingRateFloor": "-0.02500000",

        "fundingIntervalHours": 8,

        "disclaimer": false

    }

]

GET /fapi/v1/fundingInfo

 

???? 500/5min/IP

 

??????????????FundingRateCap/FundingRateFloor/fundingIntervalHours???????????

 

24hr??????

??:

 

{

  "symbol": "BTCUSDT",

  "priceChange": "-94.99999800",    //24??????

  "priceChangePercent": "-95.960",  //24?????????

  "weightedAvgPrice": "0.29628482", //?????

  "lastPrice": "4.00000200",        //???????

  "lastQty": "200.00000000",        //???????

  "openPrice": "99.00000000",       //24???????????

  "highPrice": "100.00000000",      //24?????

  "lowPrice": "0.10000000",         //24?????

  "volume": "8913.30000000",        //24?????

  "quoteVolume": "15.30000000",     //24?????

  "openTime": 1499783499040,        //24??????????????

  "closeTime": 1499869899040,       //24???????????????

  "firstId": 28385,   // ????id

  "lastId": 28460,    // ????id

  "count": 76         // ????

}

?(?????????)

 

[

    {

        "symbol": "BTCUSDT",

        "priceChange": "-94.99999800",    //24??????

        "priceChangePercent": "-95.960",  //24?????????

        "weightedAvgPrice": "0.29628482", //?????

        "lastPrice": "4.00000200",        //???????

        "lastQty": "200.00000000",        //???????

        "openPrice": "99.00000000",       //24???????????

        "highPrice": "100.00000000",      //24?????

        "lowPrice": "0.10000000",         //24?????

        "volume": "8913.30000000",        //24?????

        "quoteVolume": "15.30000000",     //24?????

        "openTime": 1499783499040,        //24??????????????

        "closeTime": 1499869899040,       //24???????????????

        "firstId": 28385,   // ????id

        "lastId": 28460,    // ????id

        "count": 76         // ????

    }

]

GET /fapi/v1/ticker/24hr

 

???????symbol??????????????????????????

 

??: * ?symbol?1 * ???40

 

????: 5s

 

??:

 

??         ??         ????         ??

symbol     STRING    NO   ???

????????????????????

????

??:

 

{

  "symbol": "LTCBTC",       // ???

  "price": "4.00000200",        // ??

  "time": 1589437530011   // ??????

}

?(????symbol)

 

[

    {

        "symbol": "BTCUSDT",    // ???

        "price": "6000.01",     // ??

        "time": 1589437530011   // ??????

    }

]

GET /fapi/v1/ticker/price

 

??????

 

??: * ????1 * ????2

 

????: 5s

 

??:

 

??         ??         ????         ??

symbol     STRING    NO   ???

????????????????????

????V2

??:

 

{

  "symbol": "LTCBTC",       // ???

  "price": "4.00000200",        // ??

  "time": 1589437530011   // ??????

}

?(????symbol)

 

[

    {

        "symbol": "BTCUSDT",    // ???

        "price": "6000.01",     // ??

        "time": 1589437530011   // ??????

    }

]

GET /fapi/v2/ticker/price

 

??????

 

??: * ????1 * ????2

 

????: ??

 

??:

 

??         ??         ????         ??

symbol     STRING    NO   ???

????????????????????

??????

??:

 

{

  "lastUpdateId": 1027024,

  "symbol": "BTCUSDT", // ???

  "bidPrice": "4.00000000", //?????

  "bidQty": "431.00000000", //???

  "askPrice": "4.00000200", //?????

  "askQty": "9.00000000", //???

  "time": 1589437530011   // ??????

}

?(????symbol)

 

[

    {

        "lastUpdateId": 1027024,

        "symbol": "BTCUSDT", // ???

        "bidPrice": "4.00000000", //?????

        "bidQty": "431.00000000", //???

        "askPrice": "4.00000200", //?????

        "askQty": "9.00000000", //???

        "time": 1589437530011   // ??????

    }

]

GET /fapi/v1/ticker/bookTicker

 

?????????(?????????)

 

??: * ????2

* ????5

 

????: ??

 

??:

 

??         ??         ????         ??

symbol     STRING    NO   ???

????????????????????

????????X-MBX-USED-WEIGHT-1M??????????




  admin   2024-4-16