作者 karlet

feat:子账户 白名单ip curd

@@ -118,7 +118,27 @@ class BinanceSpot @@ -118,7 +118,27 @@ class BinanceSpot
118 $method = 'POST'; 118 $method = 'POST';
119 return $this->requestAccount($method, $path, $param); 119 return $this->requestAccount($method, $path, $param);
120 } 120 }
121 - 121 + //查询子账户API Key IP白名单 (适用母账户)
  122 + public function ipRestrictionQuery($param)
  123 + {
  124 + $path = '/sapi/v1/sub-account/subAccountApi/ipRestriction';
  125 + $method = 'GET';
  126 + return $this->requestAccount($method, $path, $param);
  127 + }
  128 + //删除子账户API Key IP白名单 (适用母账户)
  129 + public function ipRestrictionDelete($param)
  130 + {
  131 + $path = '/sapi/v1/sub-account/subAccountApi/ipRestriction/ipList';
  132 + $method = 'DELETE';
  133 + return $this->requestAccount($method, $path, $param);
  134 + }
  135 + //为子账户API Key增加IP白名单 (适用母账户)
  136 + public function ipRestrictionAdd($param)
  137 + {
  138 + $path = '/sapi/v2/sub-account/subAccountApi/ipRestriction';
  139 + $method = 'POST';
  140 + return $this->requestAccount($method, $path, $param);
  141 + }
122 142
123 /* 143 /*
124 * ================================== 144 * ==================================