Skip to content

Commit

Permalink
chore(): deprecation notes from binance docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagosiebler committed May 29, 2024
1 parent e5d7e67 commit 1de09ea
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/main-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -993,14 +993,18 @@ export class MainClient extends BaseRestClient {
return this.deletePrivate('sapi/v1/margin/openOrders', params);
}

// TODO - https://binance-docs.github.io/apidocs/spot/en/#get-cross-margin-transfer-history-user_data

/**
* @deprecated on 2024-01-09, use getMarginAccountBorrowRepayRecords() instead
*/
queryLoanRecord(
params: QueryMarginRecordParams,
): Promise<{ rows: MarginAccountRecord[]; total: number }> {
return this.getPrivate('sapi/v1/margin/loan', params);
}

/**
* @deprecated on 2024-01-09, use getMarginAccountBorrowRepayRecords() instead
*/
queryRepayRecord(
params: QueryMarginRecordParams,
): Promise<{ rows: MarginAccountRecord[]; total: number }> {
Expand Down Expand Up @@ -1063,6 +1067,9 @@ export class MainClient extends BaseRestClient {
return this.getPrivate('sapi/v1/margin/maxTransferable', params);
}

/**
* @deprecated on 2024-01-09, use submitUniversalTransfer() instead
*/
isolatedMarginAccountTransfer(
params: IsolatedMarginAccountTransferParams,
): Promise<MarginTransactionResponse> {
Expand Down

0 comments on commit 1de09ea

Please sign in to comment.