Skip to content

Commit

Permalink
fix: temporary registry changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cdummett committed Jul 21, 2023
1 parent 10cc3dd commit 87aafec
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 33 deletions.
26 changes: 13 additions & 13 deletions vega_sim/devops/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@
"BTCUSD": lambda: DevOpsScenario(
binance_code="BTCDAI",
market_manager_args=MarketManagerArgs(
market_name="BTCUSD Monthly (Dec 2022)",
market_code="BTCUSD",
market_name="BTC/DAI-CE berg orders",
market_code="BTC/DAI-CE",
asset_name="tDAI",
adp=5,
mdp=5,
pdp=3,
adp=18,
mdp=1,
pdp=4,
),
market_maker_args=MarketMakerArgs(
market_kappa=0.15,
Expand All @@ -91,26 +91,26 @@
inventory_lower_boundary=-3,
inventory_upper_boundary=3,
fee_amount=0.0001,
commitment_amount=1e5,
initial_mint=2e5,
commitment_amount=200000,
initial_mint=400000,
),
auction_trader_args=AuctionTraderArgs(
initial_volume=0.001,
initial_mint=1e4,
),
random_trader_args=RandomTraderArgs(
order_intensity=[5, 5, 5],
order_volume=[0.01, 0.1, 1],
step_bias=[0.333, 0.012, 0.003],
initial_mint=1e6,
order_intensity=[10, 10, 10],
order_volume=[0.0001, 0.001, 0.005],
step_bias=[0.5, 0.1, 0.02],
initial_mint=100000,
),
sensitive_trader_args=SensitiveTraderArgs(
scale=[10, 10, 10],
max_order_size=[0.001, 0.01, 0.1],
initial_mint=1e4,
initial_mint=100000,
),
simulation_args=SimulationArgs(
n_steps=60 * 6,
n_steps=10000,
granularity=Granularity.MINUTE,
coinbase_code="BTC-USDT",
start_date="2022-11-01 00:00:00",
Expand Down
36 changes: 18 additions & 18 deletions vega_sim/devops/scenario.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,29 +212,29 @@ def configure_agents(
for i, party in enumerate(RANDOM_TRADER_AGENTS)
]

# Setup agents for placing price-sensitive limit orders
sensitive_limit_order_traders = [
PriceSensitiveLimitOrderTrader(
wallet_name=party.wallet_name,
key_name=party.key_name,
market_name=self.market_name
if self.market_name is not None
else self.market_manager_args.market_name,
asset_name=self.market_manager_args.asset_name,
price_process_generator=iter(self.price_process),
initial_asset_mint=self.sensitive_trader_args.initial_mint,
scale=self.sensitive_trader_args.scale[i],
max_order_size=self.sensitive_trader_args.max_order_size[i],
tag=i,
)
for i, party in enumerate(SENSITIVE_TRADER_AGENTS)
]
# # Setup agents for placing price-sensitive limit orders
# sensitive_limit_order_traders = [
# PriceSensitiveLimitOrderTrader(
# wallet_name=party.wallet_name,
# key_name=party.key_name,
# market_name=self.market_name
# if self.market_name is not None
# else self.market_manager_args.market_name,
# asset_name=self.market_manager_args.asset_name,
# price_process_generator=iter(self.price_process),
# initial_asset_mint=self.sensitive_trader_args.initial_mint,
# scale=self.sensitive_trader_args.scale[i],
# max_order_size=self.sensitive_trader_args.max_order_size[i],
# tag=i,
# )
# for i, party in enumerate(SENSITIVE_TRADER_AGENTS)
# ]

agents = (
[market_manager, market_maker]
+ auction_pass_agents
+ random_market_order_traders
+ sensitive_limit_order_traders
# + sensitive_limit_order_traders
)

else:
Expand Down
4 changes: 2 additions & 2 deletions vega_sim/null_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,10 +529,10 @@ def manage_vega_processes(
vega_console_path,
"nx",
"serve",
"--port",
f"{port_config[Ports.CONSOLE]}",
"-o",
"trading",
"--port",
f"{port_config[Ports.CONSOLE]}",
],
dir_root=tmp_vega_dir,
log_name="console",
Expand Down

0 comments on commit 87aafec

Please sign in to comment.