@strobelabs/perpcity-sdk 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -10
- package/dist/index.d.mts +989 -13
- package/dist/index.d.ts +989 -13
- package/dist/index.js +1397 -44
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1386 -44
- package/dist/index.mjs.map +1 -1
- package/package.json +9 -2
package/README.md
CHANGED
|
@@ -25,26 +25,24 @@ const ctx = new PerpCityContext({
|
|
|
25
25
|
const perpManager = new PerpManager(ctx);
|
|
26
26
|
```
|
|
27
27
|
|
|
28
|
-
###
|
|
28
|
+
### Example Usage
|
|
29
29
|
|
|
30
30
|
#### Create a Perp
|
|
31
31
|
|
|
32
32
|
```typescript
|
|
33
|
-
|
|
34
|
-
startingPrice:
|
|
33
|
+
await perpManager.createPerp({
|
|
34
|
+
startingPrice: 50,
|
|
35
35
|
beacon: '0x123...'
|
|
36
36
|
});
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
#### Open a Maker Position
|
|
40
40
|
|
|
41
41
|
```typescript
|
|
42
|
-
|
|
43
|
-
marign:
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
await perp.openMakerPosition({
|
|
43
|
+
marign: 100,
|
|
44
|
+
priceLower: 45,
|
|
45
|
+
priceUpper: 55
|
|
46
46
|
});
|
|
47
47
|
```
|
|
48
48
|
|
|
49
|
-
### Position Actions
|
|
50
|
-
|