- Linux VM
- node 14
- mongoDB 4.2+
- Redis 5
- RPC/API endpoints for the chains you want to support
Usage: atomicagent [options] [command]
Options:
-V, --version output the version number
-h, --help display help for command
Commands:
wallet Communicate with asset wallets
manage Manage assets & markets
help [command] display help for command
Usage: bin/atomicagent wallet [options] [command]
Options:
-c, --config <path> Config file path
-h, --help display help for command
Commands:
balances
balance <asset>
getnewaddress <asset>
sendtoaddress <asset> <address> <amount>
help [command] display help for command
Usage: bin/atomicagent manage [options] [command]
Options:
-c, --config <path> Config file path
-h, --help display help for command
Commands:
asset:add <code> <min> <max> <minConf> <dailyUsdLimit>
asset:set <code> <key> <value>
asset:disable <code>
asset:enable <code>
markets:create
market:spread:set <from> <to> <spread>
market:spread:get <from> <to>
help [command] display help for command
git clone git@github.com:liquality/atomicagent.git
cd atomicagent
npm ci
cp sample.config.toml config.toml # copy sample config
nano config.toml # configure your agent
bin/atomicagent manage asset:add <code1> <min> <max> <minConf> <dailyUsdLimit>
bin/atomicagent manage asset:add <code2> <min> <max> <minConf> <dailyUsdLimit>
bin/atomicagent manage markets:create # creates market for code1-code2 & code2-code1
npm start
Environment | Network | Endpoint |
---|---|---|
Production | Testnet | https://liquality.io/swap-testnet/agent |
Production | Mainnet | https://liquality.io/swap/agent |
Development | Testnet | https://liquality.io/swap-testnet-dev/agent |
Development | Mainnet | https://liquality.io/swap-dev/agent |
Node | Network | Endpoint |
---|---|---|
Bitcoin Electrs | Testnet | https://liquality.io/testnet/electrs |
Bitcoin Batch Electrs | Testnet | https://liquality.io/electrs-testnet-batch |
Ethereum Scraper | Testnet | https://liquality.io/eth-ropsten-api |
RSK Scraper | Testnet | https://liquality.io/rsk-testnet-api |
BSC Scraper | Testnet | https://liquality.io/bsc-testnet-api |
Polygon Scraper | Testnet | https://liquality.io/polygon-testnet-api/ |
Node | Network | Endpoint |
---|---|---|
Bitcoin Electrs | Mainnet | https://api-mainnet-bitcoin-electrs.liquality.io |
Bitcoin Batch Electrs | Mainnet | https://api-mainnet-bitcoin-electrs-batch.liquality.io |
Ethereum Scraper | Mainnet | https://liquality.io/eth-mainnet-api |
RSK Scraper | Mainnet | https://liquality.io/rsk-mainnet-api |
BSC Scraper | Mainnet | https://liquality.io/bsc-mainnet-api |
Polygon Scraper | Mainnet | https://liquality.io/polygon-mainnet-api/ |
cp sample.config.toml test.config.toml # copy sample config
nano config.toml # configure your agent as per your test environment
chmod -R 777 test/docker/config
npm run docker:start
sleep 30 # let bitcoind[regtest] mine first 100 blocks
npm run test