Furnace is a high-performance quantitative trading library that provides features similar to CCXT, allowing developers to connect and interact with multiple cryptocurrency exchanges easily. It offers a simple API for efficient strategy development and deployment.
Before using furnace, you need to:
-
Compile https://github.com/furnace-dev/sonic-mojo and copy
libsonic.soto the current directory. -
Important: The
libfurnace_connect.solibrary is a commercial component. To purchase and obtain access:- Contact via WeChat:
chds27 - After purchase, compile https://github.com/furnace-dev/furnace-connect and copy
libfurnace_connect.soto the current directory
- Contact via WeChat:
-
Install system dependencies:
# for linux
sudo apt-get install zlib1g-dev libtinfo-dev
# for macos
brew install zlib ncurses- Install Magic using the official installer:
curl -ssL https://magic.modular.com/deb1e28c-0019-44c0-b2f9-743dee6ddb70 | bash-
Run the
sourcecommand that's printed in your terminal after installation. -
Create and activate the project environment:
magic shell # Activate the environmentInitialize the project dependencies:
source init.shRun the test suite:
mojo testRun the demos in either debug or release mode:
# Debug mode
RUST_BACKTRACE=1 mojo run -D DEBUG_MODE gateio-demo.mojo
RUST_BACKTRACE=1 mojo run -D DEBUG_MODE gateio-main.mojo
# Release mode
mojo run ccxt-gateio-demo.mojoFor more information about Magic package manager, see the official Magic documentation.