@@ -21,6 +21,7 @@ import {
2121 IHistoricalTrade ,
2222 ILimitOrder ,
2323 ILimitOrderStatus ,
24+ IManagementCredits ,
2425 IManagementStatus ,
2526 IManagementUsage ,
2627 IMarketOrderBooks ,
@@ -251,6 +252,11 @@ export class ShrimpyApiClient {
251252 await this . _callEndpoint < any > ( endpoint , 'POST' , parameters , true ) ;
252253 }
253254
255+ public async removeUser ( userId : string ) : Promise < void > {
256+ const endpoint = `users/${ userId } ` ;
257+ await this . _callEndpoint < any > ( endpoint , 'DELETE' , { } , true ) ;
258+ }
259+
254260 public async enableUser ( userId : string ) : Promise < void > {
255261 // Deprecated, this endpoint no longer has any functionality
256262 // It has been preserved to avoid breaking deployments from library upgrades
@@ -797,7 +803,14 @@ export class ShrimpyApiClient {
797803 return await this . _callEndpoint < IManagementStatus > ( endpoint , 'GET' , null , true ) ;
798804 }
799805
806+ public async getCredits ( ) : Promise < IManagementCredits > {
807+ const endpoint = `management/credits` ;
808+ return await this . _callEndpoint < IManagementCredits > ( endpoint , 'GET' , null , true ) ;
809+ }
810+
800811 public async getUsage ( ) : Promise < IManagementUsage > {
812+ // Deprecated, this endpoint no longer has any functionality
813+ // It has been preserved to avoid breaking deployments from library upgrades
801814 const endpoint = `management/usage` ;
802815 return await this . _callEndpoint < IManagementUsage > ( endpoint , 'GET' , null , true ) ;
803816 }
0 commit comments