Skip to content

Commit

Permalink
Add round 3 limits, fix order depth spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
jmerle committed Apr 15, 2024
1 parent 4bf5c20 commit 9c63e2d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/pages/visualizer/PositionChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ function getLimit(algorithm: Algorithm, symbol: ProsperitySymbol): number {
AMETHYSTS: 20,
STARFRUIT: 20,
ORCHIDS: 100,
CHOCOLATE: 250,
STRAWBERRIES: 350,
ROSES: 60,
GIFT_BASKET: 60,
};

if (knownLimits[symbol] !== undefined) {
Expand Down
3 changes: 2 additions & 1 deletion src/pages/visualizer/TimestampDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ export function TimestampDetail({
<OrderDepthTable orderDepth={orderDepth} />
</Grid.Col>
))}
{Object.keys(state.orderDepths).length % 3 > 0 && <Grid.Col span="auto" />}
{Object.keys(state.orderDepths).length % 3 <= 2 && <Grid.Col span={{ xs: 12, sm: 4 }} />}
{Object.keys(state.orderDepths).length % 3 <= 1 && <Grid.Col span={{ xs: 12, sm: 4 }} />}
<Grid.Col span={{ xs: 12, sm: 4 }}>
<Title order={5}>Own trades</Title>
{<TradesTable trades={state.ownTrades} />}
Expand Down

0 comments on commit 9c63e2d

Please sign in to comment.