Files
Anubis/tests
Alby96andClaude Opus 5.5 47e08d6778 Add venue costs and the financing calendar for the basket engine
The basket engine needs the costs and margin rules of the venue it
simulates, dated and sourced, so a basket trial can copy them into its
plan and its fingerprint changes when any value does.

VenueCosts holds, per pair, the eToro values of the research document
(appendix A and section 6.3, 1-2 December 2026): instrument id, real
account leverage, bid/ask in normal hours and in the daily pause,
commission per side (0.005%, 0.002% on USDJPY) and overnight financing
in USD per 100,000 USD a night. The twelve legs of section 6.3 are
stored as the document's pips x pip value per 1,000 USD x 100 (EURUSD
buy 8.096, the 8.10 USD of section 6.7); the sixteen pairs without a
rate pay the largest known charge on both sides and are marked
estimated. Venue-wide: minimum 1,000 USD, default leverage 5, allowed
leverages, mandatory stop at 50% of the margin, account liquidation
at 50% of the initial margin. VenueCosts.None is the comparison
configuration: no costs, no mandatory stop, no liquidation.

Scaled(m) multiplies spread, pause spread, commission and financing
charges only; credits stay. Margin, stop distance (none for a buy at
leverage 1, as section 6.5 says) and a leverage check that refuses, in
Italian, a leverage the venue or the pair does not allow. The JSON
uses the plan's options and the fingerprint is its SHA-256.

FinancingCalendar counts the rollovers at 17:00 New York (the server
day change) on Monday to Friday, Wednesday triple, in closed form: a
position held from Tuesday to Friday pays five nights.

refs #128

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-12-04 17:04:38 +01:00
..