@bluefin-exchange/pro-sdk 0.1.13 → 0.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/example.js +4 -0
- package/dist/src/api.d.ts +172 -32
- package/dist/src/api.js +178 -38
- package/dist/src/configuration.js +1 -1
- package/dist/src/request-signer.d.ts +6 -1
- package/dist/src/request-signer.js +39 -0
- package/dist/src/sdk.d.ts +17 -12
- package/dist/src/sdk.js +64 -19
- package/example.ts +19 -13
- package/package.json +1 -1
- package/src/.openapi-generator/VERSION +1 -1
- package/src/api.ts +270 -46
- package/src/configuration.ts +1 -2
- package/src/request-signer.ts +81 -0
- package/src/sdk.ts +105 -50
package/dist/example.js
CHANGED
|
@@ -174,6 +174,10 @@ function main() {
|
|
|
174
174
|
// Withdraw 10 USD
|
|
175
175
|
yield client.withdraw("USDC", "10000000000");
|
|
176
176
|
logger.info("Withdraw request success");
|
|
177
|
+
yield client.authorizeAccount(bfSigner.getAddress());
|
|
178
|
+
logger.info("Authorize account request success");
|
|
179
|
+
yield client.deauthorizeAccount(bfSigner.getAddress());
|
|
180
|
+
logger.info("Deauthorize account request success");
|
|
177
181
|
// Keep connection alive
|
|
178
182
|
yield new Promise((resolve) => setTimeout(resolve, 50000));
|
|
179
183
|
}
|
package/dist/src/api.d.ts
CHANGED
|
@@ -72,19 +72,19 @@ export interface Account {
|
|
|
72
72
|
* @type {string}
|
|
73
73
|
* @memberof Account
|
|
74
74
|
*/
|
|
75
|
-
'
|
|
75
|
+
'totalMaintenanceMarginRequiredE9': string;
|
|
76
76
|
/**
|
|
77
77
|
* The amount of margin available before liquidation (e9 format).
|
|
78
78
|
* @type {string}
|
|
79
79
|
* @memberof Account
|
|
80
80
|
*/
|
|
81
|
-
'
|
|
81
|
+
'maintenanceMarginAvailableE9': string;
|
|
82
82
|
/**
|
|
83
83
|
* The ratio of the maintenance margin required to the account value (e9 format).
|
|
84
84
|
* @type {string}
|
|
85
85
|
* @memberof Account
|
|
86
86
|
*/
|
|
87
|
-
'
|
|
87
|
+
'accountMaintenanceMarginRatioE9': string;
|
|
88
88
|
/**
|
|
89
89
|
* The leverage of the account (e9 format).
|
|
90
90
|
* @type {string}
|
|
@@ -108,7 +108,7 @@ export interface Account {
|
|
|
108
108
|
* @type {number}
|
|
109
109
|
* @memberof Account
|
|
110
110
|
*/
|
|
111
|
-
'
|
|
111
|
+
'lastUpdatedAtMillis': number;
|
|
112
112
|
/**
|
|
113
113
|
*
|
|
114
114
|
* @type {Array<Asset>}
|
|
@@ -121,6 +121,74 @@ export interface Account {
|
|
|
121
121
|
* @memberof Account
|
|
122
122
|
*/
|
|
123
123
|
'positions': Array<Position>;
|
|
124
|
+
/**
|
|
125
|
+
* The accounts that are authorized to trade on behalf of the current account.
|
|
126
|
+
* @type {Array<string>}
|
|
127
|
+
* @memberof Account
|
|
128
|
+
*/
|
|
129
|
+
'authorizedAccounts': Array<string>;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
*
|
|
133
|
+
* @export
|
|
134
|
+
* @interface AccountAuthorizationRequest
|
|
135
|
+
*/
|
|
136
|
+
export interface AccountAuthorizationRequest {
|
|
137
|
+
/**
|
|
138
|
+
*
|
|
139
|
+
* @type {AccountAuthorizationRequestSignedFields}
|
|
140
|
+
* @memberof AccountAuthorizationRequest
|
|
141
|
+
*/
|
|
142
|
+
'signedFields': AccountAuthorizationRequestSignedFields;
|
|
143
|
+
/**
|
|
144
|
+
* The signature of the request, encoded from the signedFields
|
|
145
|
+
* @type {string}
|
|
146
|
+
* @memberof AccountAuthorizationRequest
|
|
147
|
+
*/
|
|
148
|
+
'signature': string;
|
|
149
|
+
/**
|
|
150
|
+
* Used to uniquely identify the request. Created by hex encoding the bcs encoded signedFields.
|
|
151
|
+
* @type {string}
|
|
152
|
+
* @memberof AccountAuthorizationRequest
|
|
153
|
+
*/
|
|
154
|
+
'requestHash': string;
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
*
|
|
158
|
+
* @export
|
|
159
|
+
* @interface AccountAuthorizationRequestSignedFields
|
|
160
|
+
*/
|
|
161
|
+
export interface AccountAuthorizationRequestSignedFields {
|
|
162
|
+
/**
|
|
163
|
+
* The account address of the parent account that is authorizing/deauthorizing this account
|
|
164
|
+
* @type {string}
|
|
165
|
+
* @memberof AccountAuthorizationRequestSignedFields
|
|
166
|
+
*/
|
|
167
|
+
'accountAddress': string;
|
|
168
|
+
/**
|
|
169
|
+
* The address of the account that should be authorized/deauthorized
|
|
170
|
+
* @type {string}
|
|
171
|
+
* @memberof AccountAuthorizationRequestSignedFields
|
|
172
|
+
*/
|
|
173
|
+
'authorizedAccountAddress': string;
|
|
174
|
+
/**
|
|
175
|
+
* The random generated salt. Should always be a number
|
|
176
|
+
* @type {string}
|
|
177
|
+
* @memberof AccountAuthorizationRequestSignedFields
|
|
178
|
+
*/
|
|
179
|
+
'salt': string;
|
|
180
|
+
/**
|
|
181
|
+
* the ID of the internal datastore for the target network
|
|
182
|
+
* @type {string}
|
|
183
|
+
* @memberof AccountAuthorizationRequestSignedFields
|
|
184
|
+
*/
|
|
185
|
+
'idsId': string;
|
|
186
|
+
/**
|
|
187
|
+
* The timestamp when the request was signed
|
|
188
|
+
* @type {number}
|
|
189
|
+
* @memberof AccountAuthorizationRequestSignedFields
|
|
190
|
+
*/
|
|
191
|
+
'signedAtUtcMillis': number;
|
|
124
192
|
}
|
|
125
193
|
/**
|
|
126
194
|
* Represents the type of account data stream.
|
|
@@ -844,7 +912,7 @@ export interface Asset {
|
|
|
844
912
|
* @type {number}
|
|
845
913
|
* @memberof Asset
|
|
846
914
|
*/
|
|
847
|
-
'
|
|
915
|
+
'lastUpdatedAtMillis': number;
|
|
848
916
|
}
|
|
849
917
|
/**
|
|
850
918
|
*
|
|
@@ -2504,7 +2572,7 @@ export interface Position {
|
|
|
2504
2572
|
* @type {string}
|
|
2505
2573
|
* @memberof Position
|
|
2506
2574
|
*/
|
|
2507
|
-
'
|
|
2575
|
+
'maintenanceMarginE9': string;
|
|
2508
2576
|
/**
|
|
2509
2577
|
* If the position is isolated.
|
|
2510
2578
|
* @type {boolean}
|
|
@@ -2522,7 +2590,7 @@ export interface Position {
|
|
|
2522
2590
|
* @type {number}
|
|
2523
2591
|
* @memberof Position
|
|
2524
2592
|
*/
|
|
2525
|
-
'
|
|
2593
|
+
'lastUpdatedAtMillis': number;
|
|
2526
2594
|
}
|
|
2527
2595
|
/**
|
|
2528
2596
|
* The side of the position, either long or short
|
|
@@ -3247,7 +3315,7 @@ export interface Trade {
|
|
|
3247
3315
|
* @type {number}
|
|
3248
3316
|
* @memberof Trade
|
|
3249
3317
|
*/
|
|
3250
|
-
'
|
|
3318
|
+
'executedAtMillis': number;
|
|
3251
3319
|
}
|
|
3252
3320
|
export declare const TradeTradingFeeAssetEnum: {
|
|
3253
3321
|
readonly Usdc: "USDC";
|
|
@@ -3413,6 +3481,12 @@ export interface Transaction {
|
|
|
3413
3481
|
* @memberof Transaction
|
|
3414
3482
|
*/
|
|
3415
3483
|
'tradeId'?: string;
|
|
3484
|
+
/**
|
|
3485
|
+
* Transaction timestamp in milliseconds since Unix epoch.
|
|
3486
|
+
* @type {number}
|
|
3487
|
+
* @memberof Transaction
|
|
3488
|
+
*/
|
|
3489
|
+
'executedAtMillis': number;
|
|
3416
3490
|
}
|
|
3417
3491
|
/**
|
|
3418
3492
|
* The type of transaction.
|
|
@@ -3535,28 +3609,28 @@ export declare const AccountDataApiAxiosParamCreator: (configuration?: Configura
|
|
|
3535
3609
|
*
|
|
3536
3610
|
* @summary Get user\'s trade history.
|
|
3537
3611
|
* @param {string} symbol Market address to filter trades by.
|
|
3538
|
-
* @param {number} [
|
|
3539
|
-
* @param {number} [
|
|
3612
|
+
* @param {number} [startTimeAtMillis] Start time in milliseconds. Defaults to 7 days ago if not specified.
|
|
3613
|
+
* @param {number} [endTimeAtMillis] End time in milliseconds. Defaults to now if not specified. Must be greater than start time and must be less than 7 days apart.
|
|
3540
3614
|
* @param {number} [limit] Default 500; max 1000.
|
|
3541
3615
|
* @param {TradeTypeEnum} [tradeType] Type of trade. By default returns all.
|
|
3542
3616
|
* @param {number} [page] The page number to retrieve in a paginated response.
|
|
3543
3617
|
* @param {*} [options] Override http request option.
|
|
3544
3618
|
* @throws {RequiredError}
|
|
3545
3619
|
*/
|
|
3546
|
-
getAccountTrades: (symbol: string,
|
|
3620
|
+
getAccountTrades: (symbol: string, startTimeAtMillis?: number, endTimeAtMillis?: number, limit?: number, tradeType?: TradeTypeEnum, page?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3547
3621
|
/**
|
|
3548
3622
|
*
|
|
3549
3623
|
* @summary Get user\'s transaction history (any change in balance).
|
|
3550
3624
|
* @param {Array<TransactionTypeEnum>} [types] Optional query parameter to filter transactions by type.
|
|
3551
3625
|
* @param {string} [assetSymbol] Optional query parameter to filter transactions by asset bank address.
|
|
3552
|
-
* @param {number} [
|
|
3553
|
-
* @param {number} [
|
|
3626
|
+
* @param {number} [startTimeAtMillis] Start time in milliseconds. Defaults to 7 days ago if not specified.
|
|
3627
|
+
* @param {number} [endTimeAtMillis] End time in milliseconds. Defaults to now if not specified. Must be greater than start time and must be less than 7 days apart.
|
|
3554
3628
|
* @param {number} [limit] Default 500; max 1000.
|
|
3555
3629
|
* @param {number} [page] The page number to retrieve in a paginated response.
|
|
3556
3630
|
* @param {*} [options] Override http request option.
|
|
3557
3631
|
* @throws {RequiredError}
|
|
3558
3632
|
*/
|
|
3559
|
-
getAccountTransactionHistory: (types?: Array<TransactionTypeEnum>, assetSymbol?: string,
|
|
3633
|
+
getAccountTransactionHistory: (types?: Array<TransactionTypeEnum>, assetSymbol?: string, startTimeAtMillis?: number, endTimeAtMillis?: number, limit?: number, page?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3560
3634
|
};
|
|
3561
3635
|
/**
|
|
3562
3636
|
* AccountDataApi - functional programming interface
|
|
@@ -3581,28 +3655,28 @@ export declare const AccountDataApiFp: (configuration?: Configuration) => {
|
|
|
3581
3655
|
*
|
|
3582
3656
|
* @summary Get user\'s trade history.
|
|
3583
3657
|
* @param {string} symbol Market address to filter trades by.
|
|
3584
|
-
* @param {number} [
|
|
3585
|
-
* @param {number} [
|
|
3658
|
+
* @param {number} [startTimeAtMillis] Start time in milliseconds. Defaults to 7 days ago if not specified.
|
|
3659
|
+
* @param {number} [endTimeAtMillis] End time in milliseconds. Defaults to now if not specified. Must be greater than start time and must be less than 7 days apart.
|
|
3586
3660
|
* @param {number} [limit] Default 500; max 1000.
|
|
3587
3661
|
* @param {TradeTypeEnum} [tradeType] Type of trade. By default returns all.
|
|
3588
3662
|
* @param {number} [page] The page number to retrieve in a paginated response.
|
|
3589
3663
|
* @param {*} [options] Override http request option.
|
|
3590
3664
|
* @throws {RequiredError}
|
|
3591
3665
|
*/
|
|
3592
|
-
getAccountTrades(symbol: string,
|
|
3666
|
+
getAccountTrades(symbol: string, startTimeAtMillis?: number, endTimeAtMillis?: number, limit?: number, tradeType?: TradeTypeEnum, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Trade>>>;
|
|
3593
3667
|
/**
|
|
3594
3668
|
*
|
|
3595
3669
|
* @summary Get user\'s transaction history (any change in balance).
|
|
3596
3670
|
* @param {Array<TransactionTypeEnum>} [types] Optional query parameter to filter transactions by type.
|
|
3597
3671
|
* @param {string} [assetSymbol] Optional query parameter to filter transactions by asset bank address.
|
|
3598
|
-
* @param {number} [
|
|
3599
|
-
* @param {number} [
|
|
3672
|
+
* @param {number} [startTimeAtMillis] Start time in milliseconds. Defaults to 7 days ago if not specified.
|
|
3673
|
+
* @param {number} [endTimeAtMillis] End time in milliseconds. Defaults to now if not specified. Must be greater than start time and must be less than 7 days apart.
|
|
3600
3674
|
* @param {number} [limit] Default 500; max 1000.
|
|
3601
3675
|
* @param {number} [page] The page number to retrieve in a paginated response.
|
|
3602
3676
|
* @param {*} [options] Override http request option.
|
|
3603
3677
|
* @throws {RequiredError}
|
|
3604
3678
|
*/
|
|
3605
|
-
getAccountTransactionHistory(types?: Array<TransactionTypeEnum>, assetSymbol?: string,
|
|
3679
|
+
getAccountTransactionHistory(types?: Array<TransactionTypeEnum>, assetSymbol?: string, startTimeAtMillis?: number, endTimeAtMillis?: number, limit?: number, page?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Transaction>>>;
|
|
3606
3680
|
};
|
|
3607
3681
|
/**
|
|
3608
3682
|
* AccountDataApi - factory interface
|
|
@@ -3627,28 +3701,28 @@ export declare const AccountDataApiFactory: (configuration?: Configuration, base
|
|
|
3627
3701
|
*
|
|
3628
3702
|
* @summary Get user\'s trade history.
|
|
3629
3703
|
* @param {string} symbol Market address to filter trades by.
|
|
3630
|
-
* @param {number} [
|
|
3631
|
-
* @param {number} [
|
|
3704
|
+
* @param {number} [startTimeAtMillis] Start time in milliseconds. Defaults to 7 days ago if not specified.
|
|
3705
|
+
* @param {number} [endTimeAtMillis] End time in milliseconds. Defaults to now if not specified. Must be greater than start time and must be less than 7 days apart.
|
|
3632
3706
|
* @param {number} [limit] Default 500; max 1000.
|
|
3633
3707
|
* @param {TradeTypeEnum} [tradeType] Type of trade. By default returns all.
|
|
3634
3708
|
* @param {number} [page] The page number to retrieve in a paginated response.
|
|
3635
3709
|
* @param {*} [options] Override http request option.
|
|
3636
3710
|
* @throws {RequiredError}
|
|
3637
3711
|
*/
|
|
3638
|
-
getAccountTrades(symbol: string,
|
|
3712
|
+
getAccountTrades(symbol: string, startTimeAtMillis?: number, endTimeAtMillis?: number, limit?: number, tradeType?: TradeTypeEnum, page?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<Trade>>;
|
|
3639
3713
|
/**
|
|
3640
3714
|
*
|
|
3641
3715
|
* @summary Get user\'s transaction history (any change in balance).
|
|
3642
3716
|
* @param {Array<TransactionTypeEnum>} [types] Optional query parameter to filter transactions by type.
|
|
3643
3717
|
* @param {string} [assetSymbol] Optional query parameter to filter transactions by asset bank address.
|
|
3644
|
-
* @param {number} [
|
|
3645
|
-
* @param {number} [
|
|
3718
|
+
* @param {number} [startTimeAtMillis] Start time in milliseconds. Defaults to 7 days ago if not specified.
|
|
3719
|
+
* @param {number} [endTimeAtMillis] End time in milliseconds. Defaults to now if not specified. Must be greater than start time and must be less than 7 days apart.
|
|
3646
3720
|
* @param {number} [limit] Default 500; max 1000.
|
|
3647
3721
|
* @param {number} [page] The page number to retrieve in a paginated response.
|
|
3648
3722
|
* @param {*} [options] Override http request option.
|
|
3649
3723
|
* @throws {RequiredError}
|
|
3650
3724
|
*/
|
|
3651
|
-
getAccountTransactionHistory(types?: Array<TransactionTypeEnum>, assetSymbol?: string,
|
|
3725
|
+
getAccountTransactionHistory(types?: Array<TransactionTypeEnum>, assetSymbol?: string, startTimeAtMillis?: number, endTimeAtMillis?: number, limit?: number, page?: number, options?: RawAxiosRequestConfig): AxiosPromise<Array<Transaction>>;
|
|
3652
3726
|
};
|
|
3653
3727
|
/**
|
|
3654
3728
|
* AccountDataApi - object-oriented interface
|
|
@@ -3677,8 +3751,8 @@ export declare class AccountDataApi extends BaseAPI {
|
|
|
3677
3751
|
*
|
|
3678
3752
|
* @summary Get user\'s trade history.
|
|
3679
3753
|
* @param {string} symbol Market address to filter trades by.
|
|
3680
|
-
* @param {number} [
|
|
3681
|
-
* @param {number} [
|
|
3754
|
+
* @param {number} [startTimeAtMillis] Start time in milliseconds. Defaults to 7 days ago if not specified.
|
|
3755
|
+
* @param {number} [endTimeAtMillis] End time in milliseconds. Defaults to now if not specified. Must be greater than start time and must be less than 7 days apart.
|
|
3682
3756
|
* @param {number} [limit] Default 500; max 1000.
|
|
3683
3757
|
* @param {TradeTypeEnum} [tradeType] Type of trade. By default returns all.
|
|
3684
3758
|
* @param {number} [page] The page number to retrieve in a paginated response.
|
|
@@ -3686,21 +3760,21 @@ export declare class AccountDataApi extends BaseAPI {
|
|
|
3686
3760
|
* @throws {RequiredError}
|
|
3687
3761
|
* @memberof AccountDataApi
|
|
3688
3762
|
*/
|
|
3689
|
-
getAccountTrades(symbol: string,
|
|
3763
|
+
getAccountTrades(symbol: string, startTimeAtMillis?: number, endTimeAtMillis?: number, limit?: number, tradeType?: TradeTypeEnum, page?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Trade[], any>>;
|
|
3690
3764
|
/**
|
|
3691
3765
|
*
|
|
3692
3766
|
* @summary Get user\'s transaction history (any change in balance).
|
|
3693
3767
|
* @param {Array<TransactionTypeEnum>} [types] Optional query parameter to filter transactions by type.
|
|
3694
3768
|
* @param {string} [assetSymbol] Optional query parameter to filter transactions by asset bank address.
|
|
3695
|
-
* @param {number} [
|
|
3696
|
-
* @param {number} [
|
|
3769
|
+
* @param {number} [startTimeAtMillis] Start time in milliseconds. Defaults to 7 days ago if not specified.
|
|
3770
|
+
* @param {number} [endTimeAtMillis] End time in milliseconds. Defaults to now if not specified. Must be greater than start time and must be less than 7 days apart.
|
|
3697
3771
|
* @param {number} [limit] Default 500; max 1000.
|
|
3698
3772
|
* @param {number} [page] The page number to retrieve in a paginated response.
|
|
3699
3773
|
* @param {*} [options] Override http request option.
|
|
3700
3774
|
* @throws {RequiredError}
|
|
3701
3775
|
* @memberof AccountDataApi
|
|
3702
3776
|
*/
|
|
3703
|
-
getAccountTransactionHistory(types?: Array<TransactionTypeEnum>, assetSymbol?: string,
|
|
3777
|
+
getAccountTransactionHistory(types?: Array<TransactionTypeEnum>, assetSymbol?: string, startTimeAtMillis?: number, endTimeAtMillis?: number, limit?: number, page?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Transaction[], any>>;
|
|
3704
3778
|
}
|
|
3705
3779
|
/**
|
|
3706
3780
|
* AuthApi - axios parameter creator
|
|
@@ -4324,6 +4398,22 @@ export declare const TradeApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
4324
4398
|
* @throws {RequiredError}
|
|
4325
4399
|
*/
|
|
4326
4400
|
postWithdraw: (withdrawRequest: WithdrawRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4401
|
+
/**
|
|
4402
|
+
* Authorizes an account to trade, perform liquidations and more, on behalf of another account
|
|
4403
|
+
* @summary Authorizes an account
|
|
4404
|
+
* @param {AccountAuthorizationRequest} accountAuthorizationRequest
|
|
4405
|
+
* @param {*} [options] Override http request option.
|
|
4406
|
+
* @throws {RequiredError}
|
|
4407
|
+
*/
|
|
4408
|
+
putAuthorizeAccount: (accountAuthorizationRequest: AccountAuthorizationRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4409
|
+
/**
|
|
4410
|
+
* Deauthorizes an account to trade, perform liquidations and more, on behalf of another account
|
|
4411
|
+
* @summary Deauthorizes an account
|
|
4412
|
+
* @param {AccountAuthorizationRequest} accountAuthorizationRequest
|
|
4413
|
+
* @param {*} [options] Override http request option.
|
|
4414
|
+
* @throws {RequiredError}
|
|
4415
|
+
*/
|
|
4416
|
+
putDeauthorizeAccount: (accountAuthorizationRequest: AccountAuthorizationRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4327
4417
|
/**
|
|
4328
4418
|
* Updates leverage for positions of a given market, closes all open orders for that market
|
|
4329
4419
|
* @summary Updates leverage for positions
|
|
@@ -4370,6 +4460,22 @@ export declare const TradeApiFp: (configuration?: Configuration) => {
|
|
|
4370
4460
|
* @throws {RequiredError}
|
|
4371
4461
|
*/
|
|
4372
4462
|
postWithdraw(withdrawRequest: WithdrawRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
4463
|
+
/**
|
|
4464
|
+
* Authorizes an account to trade, perform liquidations and more, on behalf of another account
|
|
4465
|
+
* @summary Authorizes an account
|
|
4466
|
+
* @param {AccountAuthorizationRequest} accountAuthorizationRequest
|
|
4467
|
+
* @param {*} [options] Override http request option.
|
|
4468
|
+
* @throws {RequiredError}
|
|
4469
|
+
*/
|
|
4470
|
+
putAuthorizeAccount(accountAuthorizationRequest: AccountAuthorizationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
4471
|
+
/**
|
|
4472
|
+
* Deauthorizes an account to trade, perform liquidations and more, on behalf of another account
|
|
4473
|
+
* @summary Deauthorizes an account
|
|
4474
|
+
* @param {AccountAuthorizationRequest} accountAuthorizationRequest
|
|
4475
|
+
* @param {*} [options] Override http request option.
|
|
4476
|
+
* @throws {RequiredError}
|
|
4477
|
+
*/
|
|
4478
|
+
putDeauthorizeAccount(accountAuthorizationRequest: AccountAuthorizationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
4373
4479
|
/**
|
|
4374
4480
|
* Updates leverage for positions of a given market, closes all open orders for that market
|
|
4375
4481
|
* @summary Updates leverage for positions
|
|
@@ -4416,6 +4522,22 @@ export declare const TradeApiFactory: (configuration?: Configuration, basePath?:
|
|
|
4416
4522
|
* @throws {RequiredError}
|
|
4417
4523
|
*/
|
|
4418
4524
|
postWithdraw(withdrawRequest: WithdrawRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
4525
|
+
/**
|
|
4526
|
+
* Authorizes an account to trade, perform liquidations and more, on behalf of another account
|
|
4527
|
+
* @summary Authorizes an account
|
|
4528
|
+
* @param {AccountAuthorizationRequest} accountAuthorizationRequest
|
|
4529
|
+
* @param {*} [options] Override http request option.
|
|
4530
|
+
* @throws {RequiredError}
|
|
4531
|
+
*/
|
|
4532
|
+
putAuthorizeAccount(accountAuthorizationRequest: AccountAuthorizationRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
4533
|
+
/**
|
|
4534
|
+
* Deauthorizes an account to trade, perform liquidations and more, on behalf of another account
|
|
4535
|
+
* @summary Deauthorizes an account
|
|
4536
|
+
* @param {AccountAuthorizationRequest} accountAuthorizationRequest
|
|
4537
|
+
* @param {*} [options] Override http request option.
|
|
4538
|
+
* @throws {RequiredError}
|
|
4539
|
+
*/
|
|
4540
|
+
putDeauthorizeAccount(accountAuthorizationRequest: AccountAuthorizationRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
4419
4541
|
/**
|
|
4420
4542
|
* Updates leverage for positions of a given market, closes all open orders for that market
|
|
4421
4543
|
* @summary Updates leverage for positions
|
|
@@ -4468,6 +4590,24 @@ export declare class TradeApi extends BaseAPI {
|
|
|
4468
4590
|
* @memberof TradeApi
|
|
4469
4591
|
*/
|
|
4470
4592
|
postWithdraw(withdrawRequest: WithdrawRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
4593
|
+
/**
|
|
4594
|
+
* Authorizes an account to trade, perform liquidations and more, on behalf of another account
|
|
4595
|
+
* @summary Authorizes an account
|
|
4596
|
+
* @param {AccountAuthorizationRequest} accountAuthorizationRequest
|
|
4597
|
+
* @param {*} [options] Override http request option.
|
|
4598
|
+
* @throws {RequiredError}
|
|
4599
|
+
* @memberof TradeApi
|
|
4600
|
+
*/
|
|
4601
|
+
putAuthorizeAccount(accountAuthorizationRequest: AccountAuthorizationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
4602
|
+
/**
|
|
4603
|
+
* Deauthorizes an account to trade, perform liquidations and more, on behalf of another account
|
|
4604
|
+
* @summary Deauthorizes an account
|
|
4605
|
+
* @param {AccountAuthorizationRequest} accountAuthorizationRequest
|
|
4606
|
+
* @param {*} [options] Override http request option.
|
|
4607
|
+
* @throws {RequiredError}
|
|
4608
|
+
* @memberof TradeApi
|
|
4609
|
+
*/
|
|
4610
|
+
putDeauthorizeAccount(accountAuthorizationRequest: AccountAuthorizationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
4471
4611
|
/**
|
|
4472
4612
|
* Updates leverage for positions of a given market, closes all open orders for that market
|
|
4473
4613
|
* @summary Updates leverage for positions
|