# test.ifx.markets Replacement Files

Use these files as complete replacements. Do not paste partial code.

## Destination Root

All files in this bundle are arranged relative to:

```text
test.ifx.markets/
```

That means:

```text
test-ifx-markets-replacements-20260528/app/index.php
```

goes to:

```text
test.ifx.markets/app/index.php
```

## Replace These App Files

```text
app/index.php
app/app.js
app/app.css
app/platform-sync.js
app/capital-flow-map.php
app/capital-flow-map.js
app/capital-flow-map.css
app/cross-border-flow.php
app/cross-border-flow.js
app/lab.php
app/lab.js
app/lab.css
app/news.php
app/features.php
app/trade.php
app/trade.js
app/trade.css
app/capital-flow.php
```

## Replace These API Files

```text
app/api/_proxy.php
app/api/quotes_latest.php
app/api/stats.php
app/api/history.php
app/api/capital-flow-latest.php
app/api/flow_latest.php
app/api/heartbeat.php
app/api/prop-pretrade.php
app/api/revoke-token.php
app/api/sync-token.php
```

## Replace These AI API Files

```text
app/api/ai/snapshot.php
app/api/ai/context.php
app/api/ai/capital-flow.php
app/api/ai/cross-border-flow.php
```

## Replace These Folders

```text
app/assets/
app/includes/
```

## Required Cache Versions

These are important:

```text
app/index.php loads app.css?v=2
app/index.php loads app.js?v=14
app/capital-flow-map.php loads capital-flow-map.js?v=3
app/cross-border-flow.php loads cross-border-flow.js?v=4
```

## Test URLs

```text
https://test.ifx.markets/app/api/stats.php
https://test.ifx.markets/app/api/quotes_latest.php
https://test.ifx.markets/app/api/history.php?pair=EURUSD&timeframe=M1&limit=5
https://test.ifx.markets/app/api/flow_latest.php
https://test.ifx.markets/app/index.php?cache=14
https://test.ifx.markets/app/capital-flow-map.php?cache=3
https://test.ifx.markets/app/cross-border-flow.php?cache=4
```
