vega-frontend-monorepo/apps/trading
2024-03-29 10:21:23 +00:00
..
__mocks__ feat(trading): use i18next (#5238) 2023-11-15 19:10:39 -08:00
client-pages fix(trading): check for mark price configuration 2024-03-28 14:24:08 +00:00
components fix(trading): recurring governance transfers after 0.75.1 (#6122) 2024-03-28 15:50:07 +00:00
e2e fix(trading): fix market sim tests (#6132) 2024-03-29 10:21:23 +00:00
lib fix(trading): recurring governance transfers after 0.75.1 (#6122) 2024-03-28 15:50:07 +00:00
pages feat(deal-ticket): improve stop order rejection handling (#6084) 2024-03-27 16:11:53 +00:00
public fix(trading): manifest.json and woff preloading (#5950) 2024-03-08 17:27:36 +00:00
stores feat(trading): add and show key aliases (#5819) 2024-03-06 10:47:16 +00:00
.env feat(trading): update validation and rules on take profit and stop loss (#5987) 2024-03-13 17:43:18 +00:00
.env.capsule feat(trading): update validation and rules on take profit and stop loss (#5987) 2024-03-13 17:43:18 +00:00
.env.devnet chore(governance, trading): update links for new beta extension (#5858) 2024-02-26 12:57:09 +00:00
.env.mainnet feat(trading): update validation and rules on take profit and stop loss (#5987) 2024-03-13 17:43:18 +00:00
.env.mainnet-mirror feat(trading): margin mode selector (#5660) 2024-01-24 13:17:22 +00:00
.env.stagnet1 feat(trading): update validation and rules on take profit and stop loss (#5987) 2024-03-13 17:43:18 +00:00
.env.testnet feat(trading): update validation and rules on take profit and stop loss (#5987) 2024-03-13 17:43:18 +00:00
.env.validators-testnet fix(trading,governance): align validator testnet name, add chain config (#6133) 2024-03-28 15:00:01 +00:00
.eslintrc.json chore(trading,governance,explorer): nx migration to latest (#5246) 2023-11-14 15:25:29 +01:00
client.graphql Feat/104 withdraws (#263) 2022-04-26 19:51:39 -07:00
index.d.ts Feat/dockerize frontends (#388) 2022-06-13 15:39:17 +01:00
jest.config.ts feat(trading): trading view (#5348) 2023-12-12 17:33:41 -08:00
next-env.d.ts Create a Mono-repo for DeFiUI + ui toolkit using nx 2022-02-11 15:02:11 +01:00
next.config.js chore(trading): add git hash and tag into settings view (#5207) 2023-11-13 21:17:17 -08:00
postcss.config.js Extract tailwindcss config to libs 2022-02-23 16:29:07 -08:00
project.json chore(ci): remove unused netlify configs (#5278) 2023-11-15 13:40:26 -08:00
README.md chore(trading): delete trading-e2e cypress tests (#5901) 2024-03-03 14:25:04 +00:00
sentry.client.config.js chore(react-helpers,utils,logger): create logger lib and move sentry/logger utils there (#3990) 2023-06-06 14:10:03 +01:00
sentry.server.config.js Feat/dockerize frontends (#388) 2022-06-13 15:39:17 +01:00
setup-tests.ts feat(trading): use i18next (#5238) 2023-11-15 19:10:39 -08:00
tailwind.config.js chore(types,utils,wallet): prep for publish, remove lp dashboard (#5948) 2024-03-08 13:20:03 +00:00
tsconfig.json feat: toast component (1677) (#1998) 2022-11-15 15:26:13 +01:00
tsconfig.spec.json chore: add build-spec targets and execute on affected apps and libs on CI (#1745) 2022-10-25 09:41:16 +02:00

Trading

Development

First copy the configuration of the application you are starting:

cp .env.[environment] .env.local

Starting the app:

yarn nx serve trading

Configuration

Example configurations are provided here:

For convenience, you can boot the app injecting one of the configurations above by running:

yarn env-cmd -f .\apps\trading\.env.{env} yarn nx run trading:serve # e.g. stagnet1

There are a few different configuration options offered for this app:

The network configuration for the app

Flag Purpose
NX_VEGA_ENV The name of the currently connected vega environment
NX_VEGA_CONFIG_URL The network configuration for the app
NX_VEGA_URL The GraphQL query endpoint of a Vega data node
NX_ETHEREUM_PROVIDER_URL The Ethereum Provider URL for getting data from the Ethereum network, for example Infura or a local node
NX_ETHERSCAN_URL The Etherscan URL to link Ethereum transactions to

Testing

To run the minimal set of unit tests, run the following:

yarn nx test trading

To run the UI automation tests please read e2e/README.md