c9s
|
8ada9eef02
|
bbgo: optimize AdjustQuantityByMaxAmount, early return
|
2021-10-08 12:09:05 +08:00 |
|
c9s
|
7fb4d2f78d
|
return positionChanged for Process method
|
2021-10-05 21:44:39 +08:00 |
|
c9s
|
5dd2f568fe
|
add doc comment for trade collector
|
2021-10-05 21:39:10 +08:00 |
|
c9s
|
45c875fe7c
|
bbgo: improve trade collect process
|
2021-10-05 21:30:06 +08:00 |
|
c9s
|
8d01c97240
|
fix cyclic import issue
|
2021-08-26 11:46:02 +08:00 |
|
c9s
|
1f94ae1c19
|
bbgo: move moving average settings struct into bbgo
|
2021-08-26 11:32:39 +08:00 |
|
c9s
|
3ab4a570fb
|
bbgo: limit max kline slice
|
2021-06-28 14:33:32 +08:00 |
|
c9s
|
06a1f018c2
|
bbgo: push to the buffer first
|
2021-06-26 20:26:47 +08:00 |
|
c9s
|
7d853a9c74
|
bbgo: add emit position update
|
2021-06-26 20:26:47 +08:00 |
|
c9s
|
ecd2d9ea68
|
bbgo: improve trade collector callbacks
|
2021-06-26 20:26:47 +08:00 |
|
c9s
|
db4fbbc30c
|
bbgo: add trade collector
|
2021-06-26 20:26:47 +08:00 |
|
c9s
|
65629a77f4
|
bbgo: add two new position constructor
|
2021-06-26 20:26:47 +08:00 |
|
c9s
|
3d12a7df59
|
support: add sensitivity settings
|
2021-06-16 13:14:10 +08:00 |
|
c9s
|
e276ddd38a
|
bbgo: add shared local time zone
|
2021-06-16 13:04:23 +08:00 |
|
c9s
|
e23c459697
|
bbgo: move orderbook to the session level so that we can access it eaiser
|
2021-06-16 13:04:23 +08:00 |
|
c9s
|
2614b25de3
|
types: move fiat currency list to types
|
2021-06-16 13:04:23 +08:00 |
|
c9s
|
e5db780be8
|
notify trades and update position
|
2021-06-01 01:39:22 +08:00 |
|
c9s
|
c84d59734c
|
clear all trades before running backtests
|
2021-05-30 15:25:00 +08:00 |
|
c9s
|
3aa36b5989
|
refactor and fix backtest for user data stream and market data stream
|
2021-05-30 15:08:11 +08:00 |
|
c9s
|
38fd5422ab
|
xmaker: use uncovered position
|
2021-05-30 14:46:48 +08:00 |
|
c9s
|
8d31435ded
|
add trade store
|
2021-05-29 00:25:23 +08:00 |
|
c9s
|
5f18b89dfa
|
if publicOnly is set, we should not connect user data stream
|
2021-05-28 19:01:55 +08:00 |
|
c9s
|
f190b1e66a
|
fix market data stream initialization
|
2021-05-28 03:17:46 +08:00 |
|
c9s
|
7d62a7634b
|
set market data stream to public
|
2021-05-27 15:11:44 +08:00 |
|
c9s
|
b7c87c7744
|
core: move market data subscription to market data stream
|
2021-05-27 15:09:18 +08:00 |
|
c9s
|
45f1a13870
|
rename Stream field to UserDataStream and add MarketDataStream
|
2021-05-27 14:45:06 +08:00 |
|
c9s
|
2381df5009
|
add okex to the exchange factory
|
2021-05-27 00:35:51 +08:00 |
|
zenix
|
3d2a27fc10
|
Fix: nil pointer exception in indicator creation, add stoch util func
|
2021-05-26 00:20:31 +00:00 |
|
c9s
|
9c70e36e1b
|
save average cost with feeInQuote in the ApproximateAverageCost
|
2021-05-23 01:05:11 +08:00 |
|
c9s
|
d2e299a68a
|
improve position comment
|
2021-05-23 00:42:57 +08:00 |
|
c9s
|
9efb45b133
|
reduce side book copy
|
2021-05-23 00:42:44 +08:00 |
|
c9s
|
9b9643e1f9
|
improve order cancellation mechanisim
|
2021-05-22 17:44:20 +08:00 |
|
c9s
|
289227e5f3
|
add exists method for active book
|
2021-05-22 17:44:07 +08:00 |
|
c9s
|
0a908e5dda
|
fix position test for net profit
|
2021-05-22 17:43:53 +08:00 |
|
c9s
|
cca3284140
|
separate net profit and profit
|
2021-05-22 17:17:37 +08:00 |
|
c9s
|
8acada76a9
|
replace sliceorderbook with orderbook interface
|
2021-05-22 16:32:29 +08:00 |
|
c9s
|
fd710d533f
|
implement tree copy method
|
2021-05-22 12:18:08 +08:00 |
|
c9s
|
56b2c8845b
|
fix preorder, postorder and inorder
|
2021-05-22 11:36:58 +08:00 |
|
c9s
|
4fde442722
|
Add position Reset function
|
2021-05-21 00:08:04 +08:00 |
|
c9s
|
d737ab678f
|
support removing filled orders from the order store
|
2021-05-21 00:07:43 +08:00 |
|
c9s
|
422e85e3a3
|
twap: fix stop price check
|
2021-05-18 13:53:51 +08:00 |
|
c9s
|
896518f5c2
|
check if restQuantity is less than 0
|
2021-05-18 13:44:57 +08:00 |
|
c9s
|
21f7fa7846
|
twap: fix tick spread calculation
|
2021-05-18 13:38:23 +08:00 |
|
c9s
|
f6f1226bd0
|
integrate bollband indicator into xmaker
|
2021-05-17 20:04:13 +08:00 |
|
c9s
|
e7c718ee15
|
assign fee rate to position
|
2021-05-16 17:58:51 +08:00 |
|
c9s
|
187a9c795b
|
use exchange fee rate as a reference for profit
|
2021-05-16 17:50:08 +08:00 |
|
c9s
|
d0e4a5e65c
|
move addTrade lock section
|
2021-05-16 17:05:12 +08:00 |
|
c9s
|
e636a5008d
|
replace Exchange field type with ExchangeName
|
2021-05-16 17:02:23 +08:00 |
|
c9s
|
0a016cba75
|
split maker fee and taker fee
|
2021-05-16 16:50:26 +08:00 |
|
c9s
|
a4381a54a3
|
add fee rate field
|
2021-05-16 15:03:36 +08:00 |
|