feat(): add/update missing v5 market endpoints. add api doc examples for each endpoint.

This commit is contained in:
tiagosiebler
2023-06-07 12:13:25 +01:00
parent 15d5ae00cf
commit 4f563a65a5
21 changed files with 322 additions and 4 deletions

View File

@@ -35,6 +35,7 @@ import {
CreateSubMemberParamsV5,
CreateSubMemberResultV5,
CursorListV5,
DeliveryPriceV5,
DeliveryRecordV5,
DepositAddressResultV5,
DepositRecordV5,
@@ -50,6 +51,7 @@ import {
GetBorrowHistoryParamsV5,
GetClosedPnLParamsV5,
GetCoinExchangeRecordParamsV5,
GetDeliveryPriceParamsV5,
GetDeliveryRecordParamsV5,
GetDepositRecordParamsV5,
GetExecutionListParamsV5,
@@ -333,6 +335,8 @@ export class RestClientV5 extends BaseRestClient {
* Get the delivery price for option
*
* Covers: Option
*
* @deprecated use getDeliveryPrice() instead
*/
getOptionDeliveryPrice(
params: GetOptionDeliveryPriceParamsV5,
@@ -342,6 +346,17 @@ export class RestClientV5 extends BaseRestClient {
return this.get('/v5/market/delivery-price', params);
}
/**
* Get the delivery price of Inverse futures, USDC futures and Options
*
* Covers: USDC futures / Inverse futures / Option
*/
getDeliveryPrice(
params: GetDeliveryPriceParamsV5,
): Promise<APIResponseV3WithTime<CategoryCursorListV5<DeliveryPriceV5[]>>> {
return this.get('/v5/market/delivery-price', params);
}
/**
*
****** Trade APIs