Last active
February 27, 2021 06:00
-
-
Save c9s/23b55d2152e8e5eba8730090457298b6 to your computer and use it in GitHub Desktop.
BBGO for ETH
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# API Key 可以在以下頁面建立: | |
# https://max.maicoin.com/api_tokens/new | |
MAX_API_KEY= | |
MAX_API_SECRET= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exchangeStrategies: | |
- on: max | |
grid: | |
symbol: ETHUSDT | |
# 以現在價格 1530 來說,我們不想賣掉手上的現貨,所以把價格區間設定於比現價 1530 低,這樣網格就只會掛買單 | |
upperPrice: 1500 | |
lowerPrice: 1000 | |
# 買到 1500 後,掛賣 2000 (1500 + 500 = 2000) | |
# 掛 1500 買 200 USD 可以買到 0.133 顆 | |
# 成交後,掛 2000 賣 0.1 顆 (200 USD),拿回本金,剩下 0.03 顆留在市場繼續獲利 | |
# | |
# 如果長期看好就把 profitSpread 調到更高,單純把網格當作下買單的工具 | |
profitSpread: 500 | |
# 一百格,總共會用 200 USD * 100,約 20000 USD 掛單 | |
gridNumber: 100 | |
# 使用固定金額,每單 200 美金,價格越低買的顆數越多 | |
# 上檔價格 1500 掛的量: 200 / 1500 = 0.133 顆 | |
# 下檔價格 1000 掛的量: 200 / 1000 = 0.2 顆 | |
amount: 200.0 | |
# 看多, 每隔成交之後,用成交金額掛套利單。 賣單成交後,掛低價買單。 買單成交後,掛高價賣單。 | |
# 如果你長期看多,可以設定 long: true,這樣套利之後,會把獲利留在基準貨幣 (ETH, BTC or MAX) ,讓他隨著上漲趨勢持續創造獲利。 | |
long: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment