Skip to content

Commit 291d4c8

Browse files
committed
feat: rename sdk
1 parent f5df473 commit 291d4c8

File tree

2 files changed

+9
-23
lines changed

2 files changed

+9
-23
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "@deltadefi-protocol/typescript-sdk",
3-
"description": "The Typescript SDK for interacting with DeltaDeFi protocol",
4-
"version": "0.3.23",
2+
"name": "@deltadefi-protocol/sdk",
3+
"description": "The Typescript SDK for DeltaDeFi protocol",
4+
"version": "0.3.24",
55
"main": "./dist/index.cjs",
66
"browser": "./dist/index.js",
77
"module": "./dist/index.js",

readme.md

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# UTxO Orderbook TypeScript SDK
22

3-
The UTxO Orderbook TypeScript SDK provides a convenient way to interact with the DeltaDefi API. It includes classes and methods for managing accounts, orders, markets, and wallets.
3+
The UTxO Orderbook TypeScript SDK provides a convenient way to interact with the DeltaDefi API. It includes classes and methods for managing accounts, orders, markets.
44

55
## Installation
66

@@ -15,7 +15,7 @@ npm i @deltadefi-protocol/typescript-sdk
1515
### Importing the SDK
1616

1717
```typescript
18-
import { ApiClient } from 'deltadefi-typescript-sdk';
18+
import { ApiClient } from '@deltadefi-protocol/sdk';
1919
```
2020

2121
### Creating an Instance
@@ -25,15 +25,16 @@ const apiClient = new ApiClient({
2525
network: 'preprod',
2626
jwt: 'your-jwt-token',
2727
apiKey: 'your-api-key',
28-
signingKey: 'your-signing-key',
2928
});
3029
```
3130

3231
### Orders
3332

3433
```typescript
34+
await apiClient.loadOperationKey(<tradingPassword>)
35+
3536
const postOrderData: PostOrderRequest = {
36-
symbol: 'ADAUSDX',
37+
symbol: 'ADAUSDM',
3738
side: 'buy',
3839
type: 'limit',
3940
quantity: 100,
@@ -55,7 +56,7 @@ apiClient
5556

5657
```typescript
5758
const marketDepthData: GetMarketDepthRequest = {
58-
pair: 'ADAUSDX',
59+
pair: 'ADAUSDM',
5960
};
6061

6162
apiClient.markets
@@ -68,21 +69,6 @@ apiClient.markets
6869
});
6970
```
7071

71-
### Wallet
72-
73-
```typescript
74-
const txHex = 'your-transaction-hex';
75-
76-
apiClient.wallet
77-
?.signTx(txHex)
78-
.then((signedTx) => {
79-
console.log('Signed transaction:', signedTx);
80-
})
81-
.catch((error) => {
82-
console.error('Error signing transaction:', error);
83-
});
84-
```
85-
8672
## License
8773

8874
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

0 commit comments

Comments
 (0)