Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 1.78 KB

File metadata and controls

39 lines (30 loc) · 1.78 KB

Examples

Commands

All commands below are to be run from typescript directory.

To run it directly, ensure nvm 0.39+ is installed. Before proceeding, please be sure to have your Paradex Account (ACCOUNT_ADDRESS), your Ethereum Account and look up your Paradex Account PUBLIC_KEY1 and PRIVATE_KEY2

Environment variables:

export ACCOUNT_ADDRESS=
export PUBLIC_KEY=
export PRIVATE_KEY=
export ETHEREUM_ACCOUNT=
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
nvm install
yarn install
yarn run app
yarn run bench

Benchmarks

┌─────────┬─────────────┬─────────┬───────────────────┬──────────┬─────────┐
│ (index) │ Task Name   │ ops/sec │ Average Time (ns) │ Margin   │ Samples │
├─────────┼─────────────┼─────────┼───────────────────┼──────────┼─────────┤
│ 0       │ 'signs/sec''50'    │ 19777384.0392157  │ '±0.28%' │ 51      │
└─────────┴─────────────┴─────────┴───────────────────┴──────────┴─────────┘

Footnotes

  1. To find this value go to https://voyager.prod.paradex.trade/, search for your Paradex Account, and under Contract data choose the getSigner function from Read Contract

  2. This is available directly in Paradex. PLEASE NEVER SHARE THIS WITH ANYONE EVEN IF THEY SAY THEY WORK FOR PARADEX