Skip to content

leverex-io/SDK

Repository files navigation

Getting Started

Prerequisites

Setting Up Your Machine

  1. Python3: Ensure you have Python3 installed. You can download and install it from the official Python website.

  2. Pipenv: After installing Python3, you'll need to install Pipenv. This can be done via pip:

    pip install pipenv

Registering Your Key on a Platform

  1. Open your terminal or command prompt.

  2. Clone dealer repo E.g.

    git clone https://github.com/leverex-io/SDK.git
    cd SDK
    git fetch && git pull && git submodule update --init --recursive
  3. Navigate to the utils directory:

    cd utils
  4. Create pip env E.g.

    pipenv install --python 3.10 -r requirements.txt
  5. Use the autheid_upload_key.sh script to generate and register a new key. The script requires the following parameters:

    • Environment (e.g., dev), list of supported environment: dev, uat, prod, devprem
    • API key name (e.g., api_key_1), arbitrary key name
    • Account email (e.g., my*account@mail.com), this is about autheid account, it also has to be registered in the system you create dealer key for, e.g. https://dev.leverex.io for dev environment, https://testnet.leverex.io for uat environment, https://leverex.io for prod environment

    Here's how you run it:

    ./autheid_upload_key.sh [environment] [api_key_name] [account_email]

    Example:

    ./autheid_upload_key.sh dev api_key_1 my*account@mail.com
  6. Ask account owner to sign a request (generated by the script) in autheid app

    Running the above command will:

    • Generate and register a new key for the account my*account@mail.com in the dev environment.
    • Store the generated key in the dev/api_key_1/key.pem file.

About

Dealer service for leverex.io

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages