Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CI

on:
push:
branches: [main]
pull_request:
types: [opened, synchronize]

jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 'lts/*'

- uses: oven-sh/setup-bun@v2
with:
bun-version: latest

- run: bun install

- run: bun run build

- run: bun run typecheck

- run: bun run lint:check

- run: bun run test
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,6 @@ subaccount_name = "default"
[credentials]
private_key = "0x..."
subaccount_owner = "0x..." # only needed when using a linked signer

[credentials.testnet] # optional override for testnet
private_key = "0x..."
```

### Environment variables
Expand Down Expand Up @@ -128,7 +125,7 @@ nado trade trigger BTC long 0.01 --trigger-price 60000 --trigger-type oracle_pri
### Market data

```bash
nado market markets # List all available markets
nado market list # List all available markets
nado market price 2 # BTC-PERP best bid/ask
nado market prices 2 4 8 # Multiple markets at once
nado market orderbook 2 --depth 20 # Orderbook depth
Expand Down Expand Up @@ -187,7 +184,7 @@ Shell-specific commands: `help`, `clear`, `exit`/`quit`.

Spot products have even IDs (0, 2, 4…). Perp products have odd IDs (1, 3, 5…). Product 0 is USDT0 (the quote token).

Use `nado market markets` to list all product IDs.
Use `nado market list` to list all product IDs.

## Development

Expand Down
1 change: 1 addition & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export default tseslint.config(
'node_modules/',
'dist/',
'tsup.config.ts',
'vitest.config.ts',
'.lintstagedrc.js',
'eslint.config.js',
],
Expand Down
Loading
Loading