File tree Expand file tree Collapse file tree 5 files changed +6
-8
lines changed
Expand file tree Collapse file tree 5 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @deltadefi-protocol/sdk" ,
33 "description" : " The Typescript SDK for DeltaDeFi protocol" ,
4- "version" : " 0.3.25 " ,
4+ "version" : " 0.3.65 " ,
55 "main" : " ./dist/index.cjs" ,
66 "browser" : " ./dist/index.js" ,
77 "module" : " ./dist/index.js" ,
Original file line number Diff line number Diff line change 66 SubmitPlaceOrderTransactionRequest ,
77 SubmitPlaceOrderTransactionResponse ,
88 SubmitCancelOrderTransactionRequest ,
9- SubmitCancelOrderTransactionResponse ,
109} from '../../types' ;
1110import { Api } from '../api' ;
1211
@@ -64,11 +63,11 @@ export class Orders extends Api {
6463 /**
6564 * Submits a cancel order transaction.
6665 * @param data - The submit cancel order transaction request data.
67- * @returns A promise that resolves to the submit cancel order transaction response .
66+ * @returns The transaction hash of cancelled order.
6867 */
69- public submitCancelOrderTransaction (
68+ public async submitCancelOrderTransaction (
7069 data : SubmitCancelOrderTransactionRequest ,
71- ) : Promise < SubmitCancelOrderTransactionResponse > {
70+ ) : Promise < object > {
7271 const res = this . axiosInstance . delete ( '/order/submit' , { data } ) ;
7372 return this . resolveAxiosData ( res ) ;
7473 }
Original file line number Diff line number Diff line change 11export type TradingSymbol = 'ADAUSDM' ;
22
33export type OrderStatus =
4+ | 'processing'
45 | 'open'
56 | 'fully_filled'
67 | 'partially_filled'
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ export type SubmitWithdrawalTransactionRequest = {
3939
4040export type BuildTransferalTransactionRequest = {
4141 transferal_amount : Asset [ ] ;
42- to_address : string
42+ to_address : string ;
4343} ;
4444
4545export type SubmitTransferalTransactionRequest = {
Original file line number Diff line number Diff line change @@ -141,8 +141,6 @@ export type BuildCancelOrderTransactionResponse = {
141141 tx_hex : string ;
142142} ;
143143
144- export type SubmitCancelOrderTransactionResponse = object ;
145-
146144export type GetAPIKeyResponse = {
147145 api_key : string ;
148146 created_at : string ;
You can’t perform that action at this time.
0 commit comments