Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ts/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@
"prepare": "npm run build"
},
"types": "./dist/types/index.d.ts",
"version": "1.8.1"
"version": "1.8.2"
}
3 changes: 3 additions & 0 deletions ts/sdk/src/sdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
AccountPositionLeverageUpdateRequestSignedFields,
CreateOrderRequestSignedFields,
CreateOrderRequest,
CreateOrderRequestTwapConfig,
AccountDataApi,
AuthApi,
ExchangeApi,
Expand Down Expand Up @@ -92,6 +93,7 @@ export interface OrderParams {
timeInForce?: OrderTimeInForce;
triggerPriceE9?: string;
selfTradePreventionType?: SelfTradePreventionType;
twapConfig?: CreateOrderRequestTwapConfig;
signerAddress?: string;
}

Expand Down Expand Up @@ -617,6 +619,7 @@ export class BluefinProSdk {
timeInForce: params.timeInForce,
triggerPriceE9: params.triggerPriceE9,
selfTradePreventionType: params.selfTradePreventionType,
twapConfig: params.twapConfig,
};
console.log('Creating order:', createOrderRequest);
return await this.tradeApi.postCreateOrder(createOrderRequest);
Expand Down