@@ -1286,6 +1286,24 @@ Json::Value Client<T>::SubAccount::transfer_master_to_subaccount(const Params* p
1286
1286
{
1287
1287
std::string full_path = _BASE_REST_SPOT + " /wapi/v3/sub-account/transfer.html" ;
1288
1288
std::string query = user_client->_generate_query (params_ptr, 1 );
1289
+ Json::Value response = (user_client->_rest_client )->_postreq (full_path + query);
1290
+
1291
+ return response;
1292
+ }
1293
+ catch (ClientException e)
1294
+ {
1295
+ e.append_to_traceback (std::string (__FUNCTION__));
1296
+ throw (e);
1297
+ }
1298
+ };
1299
+
1300
+ template <typename T>
1301
+ Json::Value Client<T>::SubAccount::futures_transfer_master_history(const Params* params_ptr)
1302
+ {
1303
+ try
1304
+ {
1305
+ std::string full_path = _BASE_REST_SPOT + " /sapi/v1/sub-account/futures/internalTransfer" ;
1306
+ std::string query = user_client->_generate_query (params_ptr, 1 );
1289
1307
Json::Value response = (user_client->_rest_client )->_getreq (full_path + query);
1290
1308
1291
1309
return response;
@@ -1297,6 +1315,24 @@ Json::Value Client<T>::SubAccount::transfer_master_to_subaccount(const Params* p
1297
1315
}
1298
1316
};
1299
1317
1318
+ template <typename T>
1319
+ Json::Value Client<T>::SubAccount::futures_transfer_master_to_subaccount(const Params* params_ptr)
1320
+ {
1321
+ try
1322
+ {
1323
+ std::string full_path = _BASE_REST_SPOT + " /sapi/v1/sub-account/futures/internalTransfer" ;
1324
+ std::string query = user_client->_generate_query (params_ptr, 1 );
1325
+ Json::Value response = (user_client->_rest_client )->_postreq (full_path + query);
1326
+
1327
+ return response;
1328
+ }
1329
+ catch (ClientException e)
1330
+ {
1331
+ e.append_to_traceback (std::string (__FUNCTION__));
1332
+ throw (e);
1333
+ }
1334
+ };
1335
+
1300
1336
template <typename T>
1301
1337
Json::Value Client<T>::SubAccount::get_subaccount_balances(const Params* params_ptr)
1302
1338
{
@@ -1315,6 +1351,24 @@ Json::Value Client<T>::SubAccount::get_subaccount_balances(const Params* params_
1315
1351
}
1316
1352
};
1317
1353
1354
+ template <typename T>
1355
+ Json::Value Client<T>::SubAccount::get_subaccount_balances_summary(const Params* params_ptr)
1356
+ {
1357
+ try
1358
+ {
1359
+ std::string full_path = _BASE_REST_SPOT + " /sapi/v1/sub-account/spotSummary" ;
1360
+ std::string query = user_client->_generate_query (params_ptr, 1 );
1361
+ Json::Value response = (user_client->_rest_client )->_getreq (full_path + query);
1362
+
1363
+ return response;
1364
+ }
1365
+ catch (ClientException e)
1366
+ {
1367
+ e.append_to_traceback (std::string (__FUNCTION__));
1368
+ throw (e);
1369
+ }
1370
+ };
1371
+
1318
1372
template <typename T>
1319
1373
Json::Value Client<T>::SubAccount::get_subaccount_deposit_address(const Params* params_ptr)
1320
1374
{
0 commit comments