title: API Key error with Binance using Rust/reqwest crate
body: <p>I'm trying to write a rust program that interfaces with Binance's REST API. The link to the documentation is <a href="https://github.com/binance-exchange/binance-official-api-docs/blob/master/rest-api.md" rel="nofollow noreferrer">here.</a> The problem is that I'm sending a POST request with reqwest, a rust crate, but simply receive <code>{&quot;code&quot;:-2015,&quot;msg&quot;:&quot;Invalid API-key, IP, or permissions for action.&quot;}</code> as the response. The body's supposed to be empty, as per the documentation.</p>
  <pre><code>let final_url = &quot;https://api.binance.com/api/v3/userDataStream&quot;.to_string(); 
              let client = reqwest::blocking::Client::new();
              let response: Value = client.post(&amp;final_url)
                  .body(&quot;&quot;)
                  .header(&quot;X-MBX-APIKEY&quot;, api_key)
                  .send().unwrap()
                  .json().unwrap();
              println!(&quot;response: {}&quot;, response);
  </code></pre>
  <p>api_key in this case is just a string containing the key(which I'm sure is correct, but who knows). I've done everything from creating new API keys to just trying the secret key instead of the API key, but nothing's been giving.</p>