     <div class="hidden name"><code>authentication.Rmd</code></div>

    </div>

    
    
<p>To access private endpoints in the BitMEX API, authentication is needed. First, an API key and secret need to be generated for the account you want to use with <code>bitmexr</code>. For guidance see <a href="https://www.bitmex.com/app/restAPI#Authentication" class="uri">https://www.bitmex.com/app/restAPI#Authentication</a></p>
<p>When you have an API key, edit your .Renviron file and include both the key and secret