Python
Error FAQ

Frequently Asked Questions

This page is dedicated to frequent technical questions in regards to error messages and technical design choices.

Error Message: "API key invalid or missing permissions"

Steps to troubleshoot:

  • Ensure the Cybotrade API key is entered into the RuntimeConfig.
  • API Key used has purchased the access to the specific datasource you are attempting to retrieve.
Error Message: "AUTH server unavailable", ”Connection Timeout” or “Connection timeout”
  • This is sometimes caused by errors attempting to fetch bybit's symbol info as, some countries may have banned bybit's api servers. We suggest using a VPN or changing your DNS to 8.8.8.8 or 1.1.1.1 from Google.
Error Message: "Exception: Failed to setup backtest data Type: Send Message: Unable to send GET request, request_id: *: hyper::Error(Connect, Custom { kind: Other, error: Custom { kind: InvalidData, error: InvalidCertificate(UnknownIssuer) } }) Code None"

This is a common issue when running on Windows.

  • Try to run conda install -c anaconda certifi
  • Alternatively, change your settings in VScode following these steps:
    CTRL+SHIFT+P > type settings > choose preferences: open user settings > search certificates > tick all the bar (edited)
Why do we use models.pyi rather than models.py

There are no datatypes that are defined in Python for Cybotrade.
This is due to the fact that all the types defined lives in a different part of the runtime, which are it's rust bindings.
As such, we only expose a *.pyi file in order to provide documentation for said types.