|
|
@@ -89,10 +89,8 @@ impl PhemexSwapRest {
|
|
|
}
|
|
|
|
|
|
//持仓(查询交易账户和仓位)
|
|
|
- pub async fn get_account_and_positions(&mut self) -> ResponseData {
|
|
|
- let params = json!({
|
|
|
- "currency":"USDT"
|
|
|
- });
|
|
|
+ pub async fn get_account_and_positions(&mut self,params:Value) -> ResponseData {
|
|
|
+
|
|
|
let data = self.request("GET".to_string(),
|
|
|
"".to_string(),
|
|
|
"/g-accounts/accountPositions".to_string(),
|