@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 CHANGED
@@ -25,26 +25,24 @@ const ctx = new PerpCityContext({
25
25
  const perpManager = new PerpManager(ctx);
26
26
  ```
27
27
 
28
- ### PerpManager Actions
28
+ ### Example Usage
29
29
 
30
30
  #### Create a Perp
31
31
 
32
32
  ```typescript
33
- const perp = await perpManager.createPerp({
34
- startingPrice: 12.3,
33
+ await perpManager.createPerp({
34
+ startingPrice: 50,
35
35
  beacon: '0x123...'
36
36
  });
37
37
  ```
38
38
 
39
- ### Open a Maker Position
39
+ #### Open a Maker Position
40
40
 
41
41
  ```typescript
42
- const perp = await perpManager.openMakerPosition({
43
- marign: 12.3,
44
- liquidity: 123,
45
-
42
+ await perp.openMakerPosition({
43
+ marign: 100,
44
+ priceLower: 45,
45
+ priceUpper: 55
46
46
  });
47
47
  ```
48
48
 
49
- ### Position Actions
50
-