Skip to content

Instantly share code, notes, and snippets.

Avatar

Yo-An Lin c9s

View GitHub Profile
@c9s
c9s / gist:a06976166cf2330ae8edd6c03e8ea384
Last active Nov 12, 2021
摩根大通分析師 Nikolaos Panigirtzoglou
View gist:a06976166cf2330ae8edd6c03e8ea384

摩根大通分析師 Nikolaos Panigirtzoglou

2021/1/6

Panigirtzoglou 指出,若不包括中央銀行持有的黃金,全球私人持有的黃金約達 2.7 兆美元,而目前在外流通的比特幣價值約為 5,750 億美元。也就是說,比特幣的市值必須上漲 4.6 倍,即價格升至 146,000 美元,才能與私人持有黃金的投資規模相符。

2021/4/20

據《彭博》報導,Panigirtzoglou 在周二 (20 日) 的報告中說,如果比特幣不能很快重返 6 萬美元關卡,恐怕將失去上漲的動能。

@c9s
c9s / git-pre-push.sh
Last active Oct 6, 2021
git pre push blocker example
View git-pre-push.sh
#!/bin/bash
# gist: https://gist.github.com/c9s/1bc7e37ce689d0bcfd5ebdbfb0965a4d
branch_blocked=local
remote_blocked=origin
remote="$1"
url="$2"
z40=0000000000000000000000000000000000000000
while read local_ref local_sha remote_ref remote_sha
@c9s
c9s / chainlink-bootstrap.sh
Created Sep 27, 2021
chainlink bootstraper
View chainlink-bootstrap.sh
@c9s
c9s / bbgo-deploy.sh
Created Jun 7, 2021
A simple fast deploy script for bbgo
View bbgo-deploy.sh
#!/bin/bash
set -e
target=$1
# bin_type is the binary type that you want to build bbgo
# use "bbgo" for full-features binary (including web application)
# use "bbgo-slim" for slim version binary (without web application)
bin_type=bbgo-slim
@c9s
c9s / bbgo.yaml
Last active Jun 2, 2021
bbgo - support strategy with margin, isolated margin and spot
View bbgo.yaml
---
notifications:
slack:
defaultChannel: "dev-bbgo"
errorChannel: "bbgo-error"
# if you want to route channel by symbol
symbolChannels:
"^BTC": "btc"
"^ETH": "eth"
@c9s
c9s / bbgo_twap_order_execution.md
Last active Nov 24, 2021
BBGO TWAP Order Execution
View bbgo_twap_order_execution.md

What's BBGO?

BBGO is an open source crypto trading framework for developing crypto trading bots. it also provides some order tools that are useful for you to submit orders. TWAP order execution is just one of them.

TWAP Order Execution

Yes, bbgo supports TWAP order execution. If you have a large quantity order want to execute, you can use this feature to update your order price according to the first bid/ask price in the order book.

@c9s
c9s / install-go-and-bbgo.md
Last active May 14, 2021
Go and BBGO Installation Guide
View install-go-and-bbgo.md

Install Go

Go to https://golang.org/dl/ and download the Go installer.

The installed Go is located in /usr/local/go, be sure to add the binary path to your PATH environment variable:

export GOPATH=~/go
export PATH=/usr/local/go/bin:$PATH
export PATH=~/go/bin:$PATH
@c9s
c9s / bbgo.yaml
Last active Mar 19, 2021
BBGO scaleQuantity, linear scale, exponential scale example on MAXUSDT market
View bbgo.yaml
---
notifications:
slack:
defaultChannel: "dev-bbgo"
errorChannel: "bbgo-error"
riskControls:
# This is the session-based risk controller, which let you configure different risk controller by session.
sessionBased:
# "max" is the session name that you want to configure the risk control
@c9s
c9s / .env.local
Last active Feb 27, 2021
BBGO for ETH
View .env.local
# API Key 可以在以下頁面建立:
# https://max.maicoin.com/api_tokens/new
MAX_API_KEY=
MAX_API_SECRET=
@c9s
c9s / .env.local
Last active Nov 22, 2021
BBGO 之 MAX 交易所網格設定指南
View .env.local
# API Key 可以在以下頁面建立:
# https://max.maicoin.com/api_tokens/new
#
MAX_API_KEY=
MAX_API_SECRET=