Coder Social home page Coder Social logo

ccxt-bullish-python's Introduction

CCXT exchange for Bullish (Python)

Overview

This python ccxt wrapper for the Bullish Trading API is work in progress. This only supports API calls on selected functionality, mainly on the read path. Please see the known gaps section for the features that are not yet available.

Pre-requisites

A valid API Key and Secret pair (HMAC) is required to access private API functionality.

Installation

This module can be installed using pip3 via source files in git. In particular:

pip3 install git+https://github.com/bullish-exchange/ccxt-bullish-python.git

or

pip3 install git+ssh://[email protected]/bullish-exchange/ccxt-bullish-python.git

Getting started

As this is not merged into ccxt yet, but available as a module - instantiate the bullish exchange object like the following:

from bullish_ccxt import bullish

my_logger = # Setup your logger...

exchange = bullish({
        'logger': my_logger,
        'apiKey': <API key>,
        'secret': <API secret>,
        'account_id': <Account ID>,
    })

fetch_balance_response = exchange.fetch_balance()
print(fetch_balance_response)

Running Integration tests

This is currently only necessary if you are trying to contribute. Update tests/exchange.py with your setup, such as environment and API keys. For example,

from bullish_ccxt import bullish

exchange = bullish({
        'apiKey': <API key>,
        'secret': <API secret>,
        'account_id': <Account ID>,
    })

exchange.set_sandbox_mode(True) # The tests are integration tests

At the parent folder of tests, trigger the tests with pytest

Available environments

  • Prod
  • Sandbox (set exchange.set_sandbox_mode(True) to activate sandbox)

Known gaps

  • Only supports HMAC API Keys
  • WebSocket support is not available
  • Only read path functionality is available - such as fetch_markets and fetch_orders.
  • Wallet/Custody functionality is not available yet

Feature requests

Please create issues via Github to request features or to report bugs.

ccxt-bullish-python's People

Contributors

danielkoh-88 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.