Evaluates & executes high frequency cryptocurrency trades from configurable trend alignment patterns.
A Coinbase Pro account, a working installation of GO, and a running instance of Docker are required.
# Download and install the latest version of nuchal
go install github.com/nelsw/nuchal@latest
# Add the go bin directory to your path
export PATH=${PATH}:/Users/${USER}/go/bin
# Confirm successful installation
nuchalnuchal supports Fiat (USD) -> Crypto and Crypto -> Fiat (USD) trading only.
nuchal caches all available USD cryptocurrency products from Coinbase on startup.
{
"id": "BTC-USD",
"base_currency": "BTC",
"quote_currency": "USD",
"base_min_size": "0.0001",
"base_max_size": "280",
"quote_increment": "0.01"
}nuchal supports a single "Tweezer Bottom" trend alignment pattern to recognize and define opportunities.
{
"id": "BTC-USD",
"gain": 0.0195,
"loss": 0.495,
"size": 1,
"delta": 0.001
}Not all commands work in Sandbox mode, Production mode requires configuration at least one source.
Execute the following if you're not interested in pattern configuration on a product level.
# Minimum requirement for running in Production mode: key, pass, secret.
export COINBASE_PRO_KEY="your_coinbase_pro_api_key"
export COINBASE_PRO_PASSPHRASE="your_coinbase_pro_api_passphrase"
export COINBASE_PRO_SECRET="your_coinbase_pro_api_secret"
# Coinbase Pro trading information for precise trade results.
export COINBASE_PRO_MAKER_FEE="your_coinbase_pro_api_maker_fee"
export COINBASE_PRO_TAKER_FEE="your_coinbase_pro_api_taker_fee"
# A time frame for the command or command data.
export PERIOD_ALPHA="2021-06-02T08:00:00+00:00"
export PERIOD_OMEGA="2021-06-03T22:00:00+00:00"
export PERIOD_DURATION="24h00m00s"To support product based pattern definitions, create a nuchal.yml configuration file like the following.
nuchal will look in the home and desktop directories for this file. You may also define config location on the cli.
# Minimum requirement for running in Production mode: key, pass, secret.
cbp:
key:
pass:
secret:
# Coinbase Pro trading information for precise trade results.
fees:
maker:
taker:
# Product selection and pattern criteria.
patterns:
- id: SKL-USD
delta: .01
- id: NU-USD
gain: .0273
- id: OMG-USD
loss: .0473
- id: TRB-USD
size: 1.25
# A time frame for the command or command data.
period:
alpha: 2021-06-02T00:00:00+00:00
omega: 2021-06-03T23:59:59+00:00
duration: 24h0m0s# Displays options for configuring global pattern criteria, USD selections, and configuration file location.
nuchal --helpnuchal has three (3) main functions:
- report
- trade
- simulate
Provides a summary of your available currencies, balances, holds, and status of open trading positions.
# Prints USD, Cryptocurrency, and total value of the configured Coinbase Pro account.
# Also prints position and trading information, namely size, value, balance and holds.
nuchal report -c /Users/${USER}/config.ymlEvaluates product & pattern configuration through a mock trading session and interactive chart results.
# Prints a simulation result report and serves a local website to host graphical report analysis.
nuchal sim
# Prints a simulation result report with a positive net gain.
nuchal sim -t --no-losers
# Prints a simulation result report with a positive net gain and zero trading positions.
nuchal sim -w --winners-onlyPolls ticker data and executes buy & sell orders when conditions match product & pattern configuration.
# Trade buys & sells products at prices or at times that meet or exceed pattern criteria, for a specified duration.
nuchal trade --usd XLM,TRB,SKL,STORJ
# Hold creates a limit entry order at the goal price for every active trading position in your available balance.
nuchal trade --hold
# Sell all available positions (active trades) at prices or at times that meet or exceed pattern criteria.
nuchal trade --sell
# Sell all available positions (active trades) at the current market price. Will not sell holds.
nuchal trade --exit
# Drop will cancel every hold order, allowing the resulting products to be sold or converted.
nuchal trade --drop
# Sells everything at market price.
nuchal trade --ejectnuchal is built largely on a Go client for CoinBase Pro formerly known as gdax, thank you preichenberger.
nuchal charts made possible by go-echarts
"How do I exit nuchal?"
exit"How do stop the docker composition?"
# To stop container orchestration
docker compose -f /Users/${USER}/go/src/github.com/nelsw/nuchal/build/docker-compose.yml down"What does nuchal mean?"
In marine biology, nuchal, new⋅cull, nu⋅chal, /ˈn(y)o͞ok(ə)l/, is defined as "an exaggerated (craniofacial) trait, responsible for defining the natural order among a species."
This code is Copyright Connor Ross Van Elswyk and licensed under Apache License 2.0



