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.so
to the current directory. -
Important: The
libfurnace_connect.so
library 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.so
to 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
source
command that's printed in your terminal after installation. -
Create and activate the project environment:
magic shell # Activate the environment
Initialize the project dependencies:
source init.sh
Run the test suite:
mojo test
Run 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.mojo
For more information about Magic package manager, see the official Magic documentation.