Skip to content

This example shows how to open and close a position using the example client from Phemex.

Notifications You must be signed in to change notification settings

ZaneH/phemex-margin-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Phemex Margin Example

Using the testnet you can create a margin account and trade with leverage. This example shows how to open and close a position using the example client from Phemex.

Quickstart

$ conda create -n margins python=3.10
$ conda activate margins
$ pip install -r requirements.txt
$ python main.py

Environment Variables

# .env

# Testnet
PHEMEX_API_ID=
PHEMEX_API_SECRET=

About

This example shows how to open and close a position using the example client from Phemex.

Topics

Resources

Stars

Watchers

Forks

Languages