作者 karlet

feat:listenkey

@@ -146,6 +146,20 @@ class BinanceSpot @@ -146,6 +146,20 @@ class BinanceSpot
146 $method = 'GET'; 146 $method = 'GET';
147 return $this->requestAccount($method, $path, $param); 147 return $this->requestAccount($method, $path, $param);
148 } 148 }
  149 + //生成 Listen Key (USER_STREAM)
  150 + public function listenKey($param)
  151 + {
  152 + $path = '/api/v3/userDataStream';
  153 + $method = 'POST';
  154 + return $this->requestAccount($method, $path, $param);
  155 + }
  156 + //延长 Listen Key 有效期 (USER_STREAM)
  157 + public function listenKeyDelay($param)
  158 + {
  159 + $path = '/api/v3/userDataStream';
  160 + $method = 'PUT';
  161 + return $this->requestAccount($method, $path, $param);
  162 + }
149 163
150 /* 164 /*
151 * ================================== 165 * ==================================