Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: support binance futures #333

Closed
wants to merge 279 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
279 commits
Select commit Hold shift + click to select a range
f2b1b9a
refactor grid strategy state loading/saving
c9s Nov 4, 2021
f78c453
grid: refactor trade handler with trade collector
c9s Nov 4, 2021
b363be3
grid: add field guards
c9s Nov 4, 2021
adae430
grid: refactor trade callback for s.TradeService.Mark
c9s Nov 4, 2021
3ee8bf5
binance: fix binance order rate limiter
c9s Nov 4, 2021
bddc86d
binance: adjust rate limiter bucket
c9s Nov 4, 2021
d476002
techsignal: if it's already high funding rate, do not show change
c9s Nov 6, 2021
3275f37
adjust listen key keep alive to 30 min
c9s Nov 7, 2021
0260730
add MarkPriceUpdateEvent
austin362667 Nov 15, 2021
2b7f259
remove personal ip settings
austin362667 Nov 15, 2021
3783959
Merge pull request #276 from TheNewInternet/main
c9s Nov 15, 2021
de5d2cd
add Continuous Contract Kline/Candlestick Streams
austin362667 Nov 16, 2021
7452e06
add flat contract files
c9s Nov 20, 2021
69e3453
add constracts/Migrations
c9s Nov 20, 2021
fb5adca
add migration script for deploying polygon BBG
c9s Nov 20, 2021
b9cc992
update dependencies
c9s Nov 20, 2021
cc9ce08
update truffle config for polygon
c9s Nov 20, 2021
aaf33ce
add readme
c9s Nov 20, 2021
239a607
rename sol to contracts dir
c9s Nov 20, 2021
e04ed3f
add 32x32 size logo
c9s Nov 20, 2021
c969a7d
Merge pull request #277 from TheNewInternet/main
c9s Nov 20, 2021
e83529e
adjust ewma truncate size
c9s Nov 21, 2021
37becfc
preallocate kline window with capacity
c9s Nov 21, 2021
a9a739f
fix ewma calculation
c9s Nov 21, 2021
6749625
override binance default http client timeout instead of zero timeout
c9s Nov 23, 2021
db9dafd
fix chat nil pointer issue
c9s Nov 25, 2021
4e39433
add /start command
c9s Nov 25, 2021
076ea77
add Command function
c9s Nov 25, 2021
b9a80fc
broadcast should also send message to owner
c9s Nov 25, 2021
9d4b7cb
show broadcast enabled
c9s Nov 25, 2021
ba15dda
Create CODE_OF_CONDUCT.md
c9s Nov 25, 2021
8d7cb96
Create CONTRIBUTING.md
c9s Nov 25, 2021
1f75573
Update README.md
c9s Nov 25, 2021
a5a0d6e
Update README.md
c9s Nov 25, 2021
cf95ce3
Update README.md
c9s Nov 25, 2021
d2ceb99
bump script version to v1.18
c9s Nov 29, 2021
e5da4e4
update readme
c9s Nov 30, 2021
47f1eaf
add mutex lock protection for backtesting
c9s Nov 30, 2021
2278815
Update README.md
tony1223 Nov 30, 2021
3d5f13c
fix generateGridSellOrders with ProfitSpread for begining
Nov 30, 2021
41d41a5
Merge pull request #284 from tony1223/main
c9s Dec 1, 2021
0f3d151
Merge pull request #283 from tony1223/patch-1
c9s Dec 1, 2021
0fd17e5
add GitBook to the supporter section
c9s Dec 1, 2021
00f52c5
fix #288 for adding migration
tony1223 Dec 4, 2021
12dbe5f
refine readme
tony1223 Dec 4, 2021
eca96c8
refine readme
tony1223 Dec 4, 2021
e9c6850
fix #261 provide default config for notification setting
tony1223 Dec 4, 2021
1e38386
compile and update migration package
tony1223 Dec 4, 2021
1bef922
fix #288 for adding migration
tony1223 Dec 4, 2021
1ab3026
refine readme
tony1223 Dec 4, 2021
094f11d
refine readme
tony1223 Dec 4, 2021
3f0125f
Merge pull request #292 from tony1223/bug/288-taker_buy_base_volumn
c9s Dec 4, 2021
99b44a0
compile and update migration package
tony1223 Dec 4, 2021
9011ee8
Merge branch 'tony1223-bug/288-taker_buy_base_volumn'
c9s Dec 4, 2021
47fbaa9
compile and update migration package
c9s Dec 4, 2021
84cce2c
add force parameter for backtest
tony1223 Dec 4, 2021
0eb9e99
Merge pull request #296 from tony1223/feature/294-force-backtest
c9s Dec 4, 2021
9ee3abd
update travis ci link
c9s Dec 4, 2021
9be8918
Create go.yml
c9s Dec 4, 2021
bd6aa0a
update github badge
c9s Dec 4, 2021
a892695
github action: install redis
c9s Dec 4, 2021
b7276ae
change redis setup to shogo82148/actions-setup-redis
c9s Dec 4, 2021
3b86e40
use actions/cache
c9s Dec 4, 2021
08b20dc
fix query ticker tests
c9s Dec 4, 2021
bf81adb
max: fix query ticker tests
c9s Dec 4, 2021
1d85b1c
check env vars for query related tests
c9s Dec 4, 2021
5a627ac
Merge pull request #297 from tony1223/bug/261-default-notification
c9s Dec 4, 2021
314beac
use position to calculate the pnl
c9s Dec 4, 2021
e22df64
adjust default grid parameters
c9s Dec 4, 2021
66a4326
update release flow go version to 1.16.11
c9s Dec 4, 2021
8289a40
use go 1.16.6 for binary release
c9s Dec 5, 2021
c0630b7
bump version to v1.18.2
c9s Dec 5, 2021
e4bff00
bump version to v1.18.3
c9s Dec 5, 2021
e0cc6ce
push git tag when version is tagged
c9s Dec 5, 2021
8462bd7
document release process
c9s Dec 5, 2021
fe9a76d
call matchingBooksMutex when assigning matching book
c9s Dec 5, 2021
e3e5268
fix backtest fee rate calculation
c9s Dec 5, 2021
c7842f6
realign account fields
c9s Dec 5, 2021
535bc58
adjust default rate to DefaultFeeRate 0.075%
c9s Dec 5, 2021
657e32a
bump version to v1.18.4
c9s Dec 5, 2021
9ad4bde
types: add account types for futures
c9s Dec 5, 2021
10f3209
types: reformat account usd cal expression
c9s Dec 5, 2021
5b94f36
types: extend FuturesSettings fields for isolated margin
c9s Dec 5, 2021
10ff360
backtest: allocate matching books from the exchange constructor
c9s Dec 5, 2021
a54c0fe
add json tag for AverageCostPnlReport
c9s Dec 5, 2021
2356209
add JSON method to the pnl report
c9s Dec 5, 2021
2862ff1
support json output for backtesting
c9s Dec 5, 2021
a087e67
doc: add build-from-source
c9s Dec 5, 2021
dde87fd
bump version to v1.18.5
c9s Dec 5, 2021
547fb1e
grid: disable trade marking
c9s Dec 5, 2021
253a5dd
avoid recording trades in backtest by default
c9s Dec 5, 2021
92b6f11
support different time format for backtesting
c9s Dec 5, 2021
e282a91
bump version to v1.19.0
c9s Dec 5, 2021
20f85b2
adding note on date formats
arthurwolf Dec 5, 2021
5cbb71c
remove jwt-go and run go mod tidy
c9s Dec 5, 2021
45799b5
upgrade github.com/miekg/dns
c9s Dec 5, 2021
839f32a
Merge pull request #306 from c9s/fix/remove-jwt-go
c9s Dec 5, 2021
d3ee69f
Merge branch 'main' into fix/go-dns-security
c9s Dec 5, 2021
b92a931
adding one more example
arthurwolf Dec 5, 2021
eff7e93
Merge pull request #307 from c9s/fix/go-dns-security
c9s Dec 5, 2021
ef31667
Merge pull request #305 from arthurwolf/date-formats
c9s Dec 5, 2021
a41569f
bump version to v1.19.1
c9s Dec 5, 2021
465fe00
avoid using panic when order cancel failed
c9s Dec 6, 2021
3a24b06
not to omit empty all fields
c9s Dec 6, 2021
d483305
do not omit empty for field feeInUSD
c9s Dec 6, 2021
f085e03
deploy.sh: add sudo command
c9s Dec 6, 2021
c488fe6
bump version to v1.19.2
c9s Dec 6, 2021
f096c3f
github: set release draft to true
c9s Dec 6, 2021
95a5bbd
github: add body_path
c9s Dec 6, 2021
86fdf6b
check out code before creating the release
c9s Dec 6, 2021
a6b66dd
github: run build before we create the release
c9s Dec 6, 2021
16063ee
github: load release note from file
c9s Dec 6, 2021
d955158
doc: update install instruction
c9s Dec 6, 2021
feb083a
update build from source doc
c9s Dec 6, 2021
a6d7113
fix doc
c9s Dec 6, 2021
0f95668
update description for alpine
c9s Dec 6, 2021
bc4c1be
update the release process doc
c9s Dec 6, 2021
3acf646
move and update the notification configuration doc
c9s Dec 6, 2021
ac8214b
doc: add details of telegram otp
c9s Dec 6, 2021
a3de6a6
re-arrange instructions
c9s Dec 6, 2021
f76ba1a
refine the back-testing doc
c9s Dec 6, 2021
51455ff
doc: describe the reason why we need to sync from an earlier date
c9s Dec 6, 2021
0a16316
Update slack.md
c9s Dec 6, 2021
f0b5997
bump version for setup scripts
c9s Dec 6, 2021
0f5b71e
add dashboard screenshot
c9s Dec 6, 2021
87b4215
Update slack.md
c9s Dec 6, 2021
78fe7e4
Update back-testing.md
c9s Dec 7, 2021
df6d36a
add git ref to the version suffix
c9s Dec 7, 2021
7bd6c1f
show symbol name in the error message
c9s Dec 7, 2021
ba49b48
use stderr for verbose log
c9s Dec 7, 2021
99f94d8
add strict start time, sync time checking for preventing back-test fa…
c9s Dec 7, 2021
33ab433
improve the error message
c9s Dec 7, 2021
7c9f632
grid: fix parameter checking for fixed amount
c9s Dec 7, 2021
434f98e
check release note in the Makefile
c9s Dec 7, 2021
c06e260
bump version to 1.19.3
c9s Dec 7, 2021
a210213
add release note for v1.19.3
c9s Dec 7, 2021
5801e62
update release note
c9s Dec 7, 2021
645869c
makefile: append || expr to git add
c9s Dec 7, 2021
479dd5c
improve makefile for version target
c9s Dec 7, 2021
5e794f9
add release note
c9s Dec 7, 2021
c719a34
bump version to v1.19.3
c9s Dec 7, 2021
6fed190
remove migrations dep from the version target
c9s Dec 7, 2021
cb16be8
bump version to v1.19.3
c9s Dec 7, 2021
79a016f
bump version to v1.19.3
c9s Dec 7, 2021
74b636b
bump version to v1.19.3
c9s Dec 7, 2021
5121064
bump version to v1.19.3
c9s Dec 7, 2021
01d7d7f
bump version to v1.19.3
c9s Dec 7, 2021
db7e252
bump version to v1.19.3
c9s Dec 7, 2021
e42c82c
fix makefile syntax
c9s Dec 7, 2021
83de2c1
Fix pointer check
c9s Dec 7, 2021
259e713
Add go installation instructions
arthurwolf Dec 7, 2021
aa4896a
Merge pull request #312 from c9s/c9s-patch-1
c9s Dec 7, 2021
672aa66
Change installation command based on comments in telegram with @c9s
arthurwolf Dec 7, 2021
e7ecaeb
fix release flow
c9s Dec 7, 2021
7c4a8e7
make rbtree properties in lower case
c9s Dec 7, 2021
4b58566
share one neel object for all rbtree
c9s Dec 7, 2021
f233ce9
re-arrange rb node fields for alignment
c9s Dec 7, 2021
4ebefb9
remove unnecessary parent node assignment
c9s Dec 7, 2021
6ac9c6f
add futures exchange check in the markets cache
c9s Dec 7, 2021
75d6001
Merge pull request #314 from arthurwolf/patch-2
c9s Dec 7, 2021
5dc979e
Merge pull request #313 from arthurwolf/patch-1
c9s Dec 7, 2021
2f5b3fd
fix markets info cache
c9s Dec 8, 2021
5b11ef8
add release doc
c9s Dec 8, 2021
30402e8
bump version to v1.19.4
c9s Dec 8, 2021
7b0f974
refine make process for #316
Dec 8, 2021
2eee582
finetune ftx for #318
Dec 8, 2021
31fb16e
types: extend order fields for futures
c9s Dec 5, 2021
d1c5f4a
types: add is_futures field to the global trade
c9s Dec 5, 2021
25d69eb
service: add is_futures fields to order service
c9s Dec 5, 2021
b01453f
service: add is_futures fields to trade service
c9s Dec 5, 2021
3298a61
add is_futures column migration sql
c9s Dec 5, 2021
34b1b16
Merge pull request #319 from tony1223/bug/318-ftx-pricealert
c9s Dec 8, 2021
b046f96
finetune #316 update the makerfile with review opinion and remove ya…
Dec 8, 2021
0c3cccc
finetune for makefile
Dec 8, 2021
4d4af21
add rockhopper usage
c9s Dec 8, 2021
59d92b5
Merge pull request #317 from tony1223/feature/316-update-make-process
c9s Dec 8, 2021
fc770c2
Merge pull request #320 from c9s/minor/integrate-binance-future-types
c9s Dec 8, 2021
c1e6919
update v1.20.0 release note
c9s Dec 8, 2021
372e441
bump version to v1.20.0
c9s Dec 8, 2021
62b978a
compile and update migration package
c9s Dec 8, 2021
82b76ff
should also push head commits when making new version
c9s Dec 8, 2021
1f72f89
add ftx, okex to the public exchange factory for backtest
c9s Dec 8, 2021
edbade5
improve error checking, avoid using panic inside the constructor
c9s Dec 8, 2021
41f3a25
add more build from source details
c9s Dec 8, 2021
87b5645
doc: describe the git clone installation
c9s Dec 8, 2021
758bbc9
support version_suffix
c9s Dec 8, 2021
9bba51a
should also update the dev version file
c9s Dec 8, 2021
55166bd
reformat import lines and add fixme note
c9s Dec 8, 2021
b2a2581
binance: refactor QueryMarkets
c9s Dec 8, 2021
1c8c212
make getLaunchDate as a simple function
c9s Dec 8, 2021
2fda17c
move convertPremiumIndex to convert.go
c9s Dec 8, 2021
116ca4c
pull out global premium index type and funding rate type
c9s Dec 8, 2021
a4ad85b
Merge pull request #322 from c9s/refactor/exchange-structure
c9s Dec 8, 2021
eae02b4
add startPrice and lastPrice in the backtest report
c9s Dec 9, 2021
a90a921
Add OKEx register link
c9s Dec 9, 2021
e3c56c7
Create new-exchange.md
c9s Dec 9, 2021
d08b653
Update new-exchange.md
c9s Dec 9, 2021
6bcfab9
Update new-exchange.md
c9s Dec 9, 2021
2c376e3
Update new-exchange.md
c9s Dec 9, 2021
d0398b9
Update new-exchange.md
c9s Dec 9, 2021
c6b1380
check sync from time with start time instead of end time
c9s Dec 9, 2021
fda6395
update ftx market mapping
c9s Dec 9, 2021
4c8d811
Merge pull request #324 from c9s/fix/update-ftx-market-mapping
c9s Dec 9, 2021
b15a8c3
config: add pricealert-tg.yaml
andycheng123 Dec 9, 2021
d81ea61
doc: notes about tg notification settings in bbgo.yaml
andycheng123 Dec 9, 2021
9fcc448
doc: add pricealert doc
andycheng123 Dec 9, 2021
920462b
Merge pull request #325 from andycheng123/main
c9s Dec 9, 2021
7ffcde1
remove unused error return value
c9s Dec 10, 2021
cacc532
ftx : fix #334 rate limit
Dec 10, 2021
597f5c6
Merge pull request #335 from tony1223/bug/334-ftx-ratelimit
c9s Dec 10, 2021
c794ca2
types: extend fields for futures account
c9s Dec 5, 2021
f60157d
types: add more futures struct
c9s Dec 5, 2021
7403aed
types: duplicate bbgo.Position to types.Position
c9s Dec 5, 2021
3da3607
types: extend futures exchange interface
c9s Dec 5, 2021
86fe851
types: add position update callbacks to standard stream
c9s Dec 5, 2021
9d4fa70
types: update standard stream callback interface
c9s Dec 5, 2021
9555224
types: reformat types.Position fields
c9s Dec 5, 2021
1194576
types: replace account position slice with position map
c9s Dec 5, 2021
29e2bb8
bbgo: extend session fields for futures
c9s Dec 5, 2021
fba255e
binance: reformat kline handler
austin362667 Nov 21, 2021
d0e219b
binance: add futures convert functions
c9s Dec 5, 2021
7eabef9
binance: add futures client to the exchange field
c9s Dec 5, 2021
f6ced6c
binance: add QueryFuturesAccount method
c9s Dec 5, 2021
46dd19d
binance: add submitFuturesOrder method
c9s Dec 5, 2021
67bac11
binance: when IsFutures is enabled, call submitFuturesOrder
c9s Dec 5, 2021
1941c96
binance: add futures exchange type check in init func
c9s Dec 5, 2021
b51e327
cmd/userdatastream: add position update callbacks
c9s Dec 5, 2021
2d5ed96
binance: replace position slice with position map
c9s Dec 5, 2021
b2f712f
binance: add toGlobalFuturesTicker convert function
c9s Dec 5, 2021
3d1a636
binance: add ToGlobalFuturesTrade convert function
c9s Dec 5, 2021
63d3315
binance: support futures query ticker
c9s Dec 5, 2021
bd57adb
binance: query futures market and convert futures market info
c9s Dec 5, 2021
9251069
binance: add stream switch for futures
c9s Dec 5, 2021
cdd8296
binance: convert futures positions into account
c9s Dec 5, 2021
6427f3a
binance: parse futrues stream events
c9s Dec 5, 2021
d552c55
binance: update stream futures callbacks
c9s Dec 5, 2021
8514a66
binance: use int64 for tradeID
c9s Dec 5, 2021
82e1f1b
binance: switch futures endpoint when IsFutures is on
c9s Dec 5, 2021
c73f360
binance: rename AccountUpdateEvent's field
austin362667 Dec 1, 2021
29326be
binance: remove redundant depthframe struct
austin362667 Dec 10, 2021
455448a
binance: add futures stream event parser
austin362667 Dec 10, 2021
b656f40
binance: add futures stream callbacks
austin362667 Dec 10, 2021
3463964
binance: make callback fields private
austin362667 Dec 10, 2021
6922814
binance: drop unused stream code blocks
austin362667 Dec 10, 2021
c643f1f
binance: integrate futures api
austin362667 Dec 10, 2021
9c9dce9
biancne: convert futures account positions
c9s Dec 5, 2021
556c9eb
binance: reformat code
c9s Dec 5, 2021
fd52d21
binance: reformat parse code
c9s Dec 5, 2021
03b4ebc
fix rate import
c9s Dec 8, 2021
7a6499e
binance: fix stream ambiguous & duplicate code
austin362667 Dec 10, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove personal ip settings
  • Loading branch information
austin362667 committed Nov 15, 2021
commit 2b7f259c11d539e06fedc86e8876aa0328d2939a
2 changes: 1 addition & 1 deletion frontend/api/bbgo.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import axios from "axios";

const baseURL = "http://66.228.52.222:8080"//process.env.NODE_ENV === "development" ? "http://localhost:8080" : ""
const baseURL = process.env.NODE_ENV === "development" ? "http://localhost:8080" : ""

export function ping(cb) {
return axios.get(baseURL + '/api/ping').then(response => {
Expand Down