Skip to content

richmanbtc/crypto_twap_exec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

crypto_twap_exec

bitflyerでtwap執行するためのコマンドラインツール。 一定時間ごとに成行発注。

セットアップ

npm install

以下の環境変数を設定。

BITFLYER_API_KEY: bitflyerのapi key
BITFLYER_API_SECRET: bitflyerのapi secret

使い方

1日かけて4btcを売る場合。デフォルトだと5分ごとに執行。買う場合はtotal_sizeをプラスにすれば良い

node main.js --duration 86400 --total_size -4

Dockerの場合

.envに環境変数を記載

docker build -t crypto_twap_exec .
docker run -d --env-file .env crypto_twap_exec node main.js --duration 86400 --total_size -4

注意

最低限で作ったのでエラー処理とかメンテとか考慮してない。

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors