File tree Expand file tree Collapse file tree 3 files changed +27
-57
lines changed Expand file tree Collapse file tree 3 files changed +27
-57
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ class Client
190
190
Json::Value futures_transfer_history (const Params* params_ptr);
191
191
Json::Value collateral_borrow (const Params* params_ptr);
192
192
Json::Value collateral_borrow_history (const Params* params_ptr = nullptr );
193
- Json::Value collateral_repay (const Params* params_ptr);
193
+ Json::Value collateral_cross_repay (const Params* params_ptr);
194
194
Json::Value collateral_repay_history (const Params* params_ptr = nullptr );
195
195
Json::Value collateral_wallet (const Params* params_ptr = nullptr );
196
196
Json::Value collateral_info (const Params* params_ptr = nullptr );
@@ -242,7 +242,7 @@ class Client
242
242
Json::Value transfer_to_subaccount_margin (const Params* params_ptr);
243
243
Json::Value transfer_subaccount_to_subaccount (const Params* params_ptr);
244
244
Json::Value transfer_subaccount_to_master (const Params* params_ptr);
245
- Json::Value transfer_subaccount_history (const Params* params_ptr);
245
+ Json::Value transfer_subaccount_history (const Params* params_ptr = nullptr );
246
246
247
247
Json::Value make_universal_transfer (const Params* params_ptr);
248
248
Json::Value get_universal_transfer_history (const Params* params_ptr = nullptr );
Original file line number Diff line number Diff line change @@ -1353,7 +1353,7 @@ Json::Value Client<T>::FuturesWallet::collateral_borrow_history(const Params* pa
1353
1353
@return the json returned by the request
1354
1354
*/
1355
1355
template <typename T>
1356
- Json::Value Client<T>::FuturesWallet::collateral_repay (const Params* params_ptr)
1356
+ Json::Value Client<T>::FuturesWallet::collateral_cross_repay (const Params* params_ptr)
1357
1357
{
1358
1358
try
1359
1359
{
@@ -2238,6 +2238,29 @@ Json::Value Client<T>::SubAccount::transfer_subaccount_to_master(const Params* p
2238
2238
}
2239
2239
};
2240
2240
2241
+ /* *
2242
+ Sub-account Transfer History (For Sub-account)
2243
+ @param params_ptr - a pointer to the request Params object
2244
+ @return the json returned by the request
2245
+ */
2246
+ template <typename T>
2247
+ Json::Value Client<T>::SubAccount::transfer_subaccount_history(const Params* params_ptr)
2248
+ {
2249
+ try
2250
+ {
2251
+ std::string full_path = _BASE_REST_SPOT + " /sapi/v1/sub-account/transfer/subUserHistory" ;
2252
+ std::string query = user_client->_generate_query (params_ptr, 1 );
2253
+ Json::Value response = (user_client->_rest_client )->_getreq (full_path + query);
2254
+
2255
+ return response;
2256
+ }
2257
+ catch (ClientException e)
2258
+ {
2259
+ e.append_to_traceback (std::string (__FUNCTION__));
2260
+ throw (e);
2261
+ }
2262
+ };
2263
+
2241
2264
/* *
2242
2265
Universal Transfer (For Master Account)
2243
2266
@param params_ptr - a pointer to the request Params object
@@ -4120,7 +4143,7 @@ Json::Value Client<T>::BSwap::get_all_swap_pools()
4120
4143
try
4121
4144
{
4122
4145
std::string full_path = _BASE_REST_SPOT + " /sapi/v1/bswap/pools" ;
4123
- Json::Value response = (user_client->_rest_client )->_getreq (full_path + query );
4146
+ Json::Value response = (user_client->_rest_client )->_getreq (full_path);
4124
4147
4125
4148
return response;
4126
4149
}
You can’t perform that action at this time.
0 commit comments