-
Notifications
You must be signed in to change notification settings - Fork 10
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
feat: CFM bots #528
base: develop
Are you sure you want to change the base?
feat: CFM bots #528
Conversation
best_bid, best_ask = self.vega.best_prices(self.market_id) | ||
# best_bid, best_ask = self.vega.best_prices(self.market_id) | ||
buy_vwap = self._execution_price(buy_vol, vega_protos.SIDE_BUY) | ||
sell_vwap = self._execution_price(buy_vol, vega_protos.SIDE_SELL) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sell_vwap = self._execution_price(buy_vol, vega_protos.SIDE_SELL) | |
sell_vwap = self._execution_price(sell_vol, vega_protos.SIDE_SELL) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lots of commented out blocks of code in this file?
Is to switch up the scenario quickly or not intentional?
"spam.protection.max.batchSize": "30", | ||
"spam.protection.max.batchSize": "200", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure about how I feel moving away from mainnet
values here.
Maybe a separate genesis for sim works now devops are using market-sim bots?
|
||
figs = price_comp_plots() | ||
for i, fig in enumerate(figs.values()): | ||
fig.savefig(f"./cfm_plots/trading-{i}.jpg") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I get an error here, manually adding a cfm_plots
dir fixed it but may be worth adding a block which creates if it doesn't exist or add the dir it to git.
Description
A LP bot that places volume on the book following$xy = k$ and sets $k$ to control position.
Closes #522 .
Authored by @TomMcL - I think in the link you gave me you've not pressed "create".