All Projects → LeeChunHao2000 → ftx-api-wrapper-python3

LeeChunHao2000 / ftx-api-wrapper-python3

Licence: MIT license
FTX Exchange API wrapper in python3

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to ftx-api-wrapper-python3

Finance-Robinhood
Trade stocks and ETFs with free brokerage Robinhood and Perl
Stars: ✭ 42 (+35.48%)
Mutual labels:  derivatives, cryptocurrencies
FTX.Net
No description or website provided.
Stars: ✭ 31 (+0%)
Mutual labels:  ftx, ftx-exchange
harfbuzz rs
A fully safe Rust wrapper for the harfbuzz text shaping library.
Stars: ✭ 26 (-16.13%)
Mutual labels:  wrapper
A-song-of-ice-and-fire-API
Javascript wrapper for the A song of ice and fire API
Stars: ✭ 15 (-51.61%)
Mutual labels:  wrapper
Invoke-Terraform
A cross-platform PowerShell module for downloading and invoking terraform binaries.
Stars: ✭ 14 (-54.84%)
Mutual labels:  wrapper
ccoin
〽️ Convert and fetch the cost of over 1000 cryptocurrencies within your terminal, and save repeated queries
Stars: ✭ 25 (-19.35%)
Mutual labels:  cryptocurrencies
AbstractOperators.jl
Abstract operators for large scale optimization in Julia
Stars: ✭ 26 (-16.13%)
Mutual labels:  derivatives
PSEventViewer
PSEventViewer (Get-Events) is really useful PowerShell wrapper around Get-WinEvent. One of the features you may be interested in is a simple way of getting “hidden” events data
Stars: ✭ 74 (+138.71%)
Mutual labels:  wrapper
discord.bat
🗑️ the BEST discord lib
Stars: ✭ 38 (+22.58%)
Mutual labels:  wrapper
widgets
💸 Web3 Payments with any token. DePay simplifies and improves Web3 Payments with the power of DeFi. Accept any token with on-the-fly conversion with state-of-the-art widgets.
Stars: ✭ 32 (+3.23%)
Mutual labels:  cryptocurrencies
dinputto8
A dll module that is designed to improve compatibility in games using DirectInput 1-7 (dinput.dll) by converting all API calls to their equivalent DirectInput 8 (dinput8.dll) ones. This allows older games to be able to use newer tools and wrappers written for DirectInput 8.
Stars: ✭ 42 (+35.48%)
Mutual labels:  wrapper
google-workspace
A unofficial high level Python API wrapper for some of the productivity based Google APIs, that is focused on simplicity.
Stars: ✭ 74 (+138.71%)
Mutual labels:  wrapper
HerePy
A library that provides a Python interface to the HERE APIs.
Stars: ✭ 73 (+135.48%)
Mutual labels:  wrapper
liqui
liqui.io api wrapper
Stars: ✭ 22 (-29.03%)
Mutual labels:  wrapper
moGL
Modern OpenGL wrapper, thin C++14 header-only layer on top of the OpenGL 4.5+ API
Stars: ✭ 27 (-12.9%)
Mutual labels:  wrapper
polycash
The ultimate open source betting protocol. PolyCash is a P2P blockchain platform for wallets, asset issuance, bonds & gaming.
Stars: ✭ 24 (-22.58%)
Mutual labels:  cryptocurrencies
v-cupertino
A Vue 3 Wrapper for Cupertino Pane Library
Stars: ✭ 17 (-45.16%)
Mutual labels:  wrapper
FivePD-API
A wrapper that allows you to create FivePD callouts/plugins.
Stars: ✭ 17 (-45.16%)
Mutual labels:  wrapper
uplot-wrappers
React and Vue.js wrappers for uPlot that allow you to work with charts declaratively inside your favorite framework
Stars: ✭ 37 (+19.35%)
Mutual labels:  wrapper
RxCamera2
Rx Java 2 wrapper for Camera2 google API
Stars: ✭ 27 (-12.9%)
Mutual labels:  wrapper

FTX-Trader

Warning

This is an UNOFFICIAL wrapper for FTX exchange HTTP API written in Python 3.7

The library can be used to fetch market data, make trades, place orders or create third-party clients

USE THIS WRAPPER AT YOUR OWN RISK, I WILL NOT CORRESPOND TO ANY LOSES

Features

  • Except OTC and Option, implementation of all public and private endpoints
  • Simple handling of authentication with API key and secret
  • For asset safety, WITHDRAWAL function will never be supported !

Donate

If useful, buy me a coffee?

  • ETH: 0x00000000051CBcE3fD04148CcE2c0adc7c651829 (brendanc.eth)

Installation

$ git clone https://github.com/LeeChunHao2000/ftx-api-wrapper-python3

Requirement

  1. Register an account with FTX exchange (referral link)
  2. Generate API key and secret, assign relevant permissions to it
  3. Clone this repository, and put in the key and secret
  4. Write your own trading policies

Quickstart

This is an introduction on how to get started with FTX client. First, make sure the FTX library is installed.

The next thing you need to do is import the library and get an instance of the client:

from FTX.client import Client
client = Client('PUY_MY_API_KEY_HERE', 'PUY_MY_API_SECRET_HERE')

Get ordedrbook

>>> from FTX.client import Client
>>> client = Client('PUY_MY_API_KEY_HERE', 'PUY_MY_API_SECRET_HERE')
>>> result = client.get_public_orderbook('BTC/USD', 1)
>>> result
{'asks': [[10854.5, 11.856]], 'bids': [[10854.0, 0.4315]]}
>>> result['asks']
[[10854.5, 11.856]]
>>> result['bids']
[[10854.0, 0.4315]]

Positions (DataFrame)

>>> import pandas as pd
>>> result = pd.DataFrame(client.get_private_account_positions())
>>> result = result.sort_values(by=['realizedPnl'], ascending=False)
>>> result
        collateralUsed      cost  entryPrice  ...  side     size  unrealizedPnl
0          0.00000     0.000         NaN  ...   buy     0.00            0.0
49         0.00000     0.000         NaN  ...   buy     0.00            0.0
4        535.09500  2972.750    594.5500  ...   buy     5.00            0.0
35       206.93750  2069.375     82.7750  ...   buy    25.00            0.0
3          0.00000     0.000         NaN  ...   buy     0.00            0.0
5        152.28000  1522.800      2.5380  ...   buy   600.00            0.0

Version Logs

2020-12-24

Bugfixes

  • Fixed a bug with function of cancel orders

Features

  • Add Spot Margin Support

2020-09-14

  • Birth!
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].