Skip to content

Commit 5f6d448

Browse files
committed
Put typescript implementation on first tab for now
1 parent cdc0acb commit 5f6d448

File tree

1 file changed

+17
-16
lines changed
  • docs/pages/interaction/permissioned-keys

1 file changed

+17
-16
lines changed

docs/pages/interaction/permissioned-keys/index.mdx

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,23 @@ In this example, the **trader** can use the authenticator to issue orders on the
221221

222222
:::code-group
223223

224+
```typescript [TypeScript]
225+
const client = await CompositeClient.connect(network);
226+
// Place an order using the authenticator.
227+
const tx = await client.placeShortTermOrder(
228+
authenticatedSubaccount,
229+
'ETH-USD',
230+
side,
231+
price,
232+
0.01,
233+
clientId,
234+
goodTilBlock,
235+
timeInForce,
236+
false,
237+
undefined,
238+
);
239+
```
240+
224241
```python [Python]
225242
id = ... # authenticator ID # [!code focus]
226243
# Create the order ID, using the owner address # [!code focus]
@@ -241,22 +258,6 @@ tx_options = TxOptions([id], wallet.sequence, wallet.account_number) # [!code fo
241258
place = await node.place_order(wallet, order, tx_options) # [!code focus]
242259
```
243260

244-
```typescript [TypeScript]
245-
const client = await CompositeClient.connect(network);
246-
// Place an order using the authenticator. // [!code focus]
247-
const tx = await client.placeShortTermOrder(
248-
authenticatedSubaccount,
249-
'ETH-USD',
250-
side,
251-
price,
252-
0.01,
253-
clientId,
254-
goodTilBlock,
255-
timeInForce,
256-
false,
257-
undefined,
258-
);
259-
```
260261

261262
```rust [Rust]
262263
// Create a `PublicAccount` representing the owner. // [!code focus]

0 commit comments

Comments
 (0)