egamifi's People
egamifi's Issues
成りでポジション解消した場合のスプレッドを計算する
板情報からポジションサイズを満たすまでの注文を回収した場合の、トータル約定価格を算出してスプレッドのダメージを算出する
order place直後のget orderで404 error
概要
order place直後にget orderしても404になってしまう
対策
source
internals/strategy/crossorder.go
res, err := c.client.PlaceOrder(&orders.RequestForPlaceOrder{
Market: c.long,
Side: "buy",
Type: "limit",
Size: size,
Price: price,
})
if err != nil {
log.Fatal(err)
}
wait := 0
for {
fmt.Println("Check Order type ID ", res.ID)
status, err := c.client.OrderStatus(&orders.RequestForOrderStatus{
OrderID: strconv.Itoa(res.ID),
})
if err != nil {
log.Fatal(err) // <--- ここ
}
fmt.Println(status)
if status.Status == "closed" {
fmt.Println("完全約定しました", c.long)
return status
}
wait++
if wait > 10 {
fmt.Println("約定しなかった")
return status
}
time.Sleep(time.Millisecond * 100)
}
ポジションを閉じるリスクをへらす点で、BTC-0900とかで両建てできないか
fundingrateの履歴を閲覧できるWebUIがほしい
背景
- funding rateは相場の影響をもろにうけて変動するので、今どういう状態なのかを簡単確認したい
- またFTXとBinanceの2取引所で比較して見たい
go-numb / go-ftx パッケージを時前のものに変える
ちょいちょい間違っている。
メンテしていなそうであればフォークしてくる
ポジション取得トリガーの閾値を移動平均を加味したい
平均的な注文価格に対して瞬間てきに乖離した注文を狙うので、直近の平均より◯◯%乖離した注文というのが良い
Cli Tool化する
bot strategy daemon
// operation auto trade strategy
$ egamifi bot crossorder
date collection
// collecting funding rate history
$ egamifi collection fr
// collect ticker history that
$ egamifi collection ticker
$ egamifi collection tradehistory
provide api server
$ egamifi server
ポジション取得の玉の大きさに上限をつける
急いで集めるのかゆっくり集めるのか、その時次第だよね
リクエストエラーの制御
2021/05/28 05:57:49 APIError: status=429, message=Do not send more than 2 orders total per 200ms
ポジション取得のトリガーのdiffを絶対値ではなく比率で見る
ベースの金額が変動したときに最適な乖離率で取得できない
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.