Skip to content

Commit 61b60c7

Browse files
authored
feat: add python method declarations (#363)
1 parent d3bd756 commit 61b60c7

35 files changed

+177
-23
lines changed

vocs-docs/docs/pages/indexer-client/http/accounts/get_parent_asset_positions.mdx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,15 @@ Query for asset positions (size, buy/sell etc) for a parent subaccount.
99
:::code-group
1010

1111
```python [Python]
12-
12+
async def get_parent_subaccount_asset_positions(
13+
self,
14+
address: str,
15+
subaccount_number: int,
16+
status: Optional[PositionStatus] = None,
17+
limit: Optional[int] = None,
18+
created_before_or_at_height: Optional[int] = None,
19+
created_before_or_at: Optional[str] = None,
20+
) -> Any:
1321
```
1422

1523
```typescript [TypeScript]

vocs-docs/docs/pages/indexer-client/http/accounts/get_parent_fills.mdx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,16 @@ Query for fills (i.e. filled orders data) for a parent subaccount.
99
:::code-group
1010

1111
```python [Python]
12-
12+
async def get_parent_fills(
13+
self,
14+
address: str,
15+
subaccount_number: int,
16+
limit: Optional[int] = None,
17+
market: Optional[str] = None,
18+
market_type: Optional[TickerType] = None,
19+
created_before_or_at_height: Optional[int] = None,
20+
created_before_or_at: Optional[str] = None,
21+
) -> Any:
1322
```
1423

1524
```typescript [TypeScript]

vocs-docs/docs/pages/indexer-client/http/accounts/get_parent_historical_pnl.mdx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,16 @@ Query for profit and loss report for the specified time/block range of a parent
99
:::code-group
1010

1111
```python [Python]
12-
12+
async def get_parent_historical_pnls(
13+
self,
14+
address: str,
15+
subaccount_number: int,
16+
limit: Optional[int] = None,
17+
created_before_or_at_height: Optional[int] = None,
18+
created_before_or_at: Optional[str] = None,
19+
created_on_or_after_height: Optional[int] = None,
20+
created_on_or_after: Optional[str] = None,
21+
) -> Any:
1322
```
1423

1524
```typescript [TypeScript]

vocs-docs/docs/pages/indexer-client/http/accounts/get_parent_subaccount.mdx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@ Query for the parent subaccount, its child subaccounts, equity, collateral and m
99
:::code-group
1010

1111
```python [Python]
12-
12+
async def get_parent_subaccount(
13+
self,
14+
address: str,
15+
subaccount_number: int,
16+
) -> Any
1317
```
1418

1519
```typescript [TypeScript]

vocs-docs/docs/pages/indexer-client/http/accounts/get_parent_subaccount_number_fills.mdx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,16 @@ TODO
77
:::code-group
88

99
```python [Python]
10-
TODO: Not available
10+
async def get_parent_fills(
11+
self,
12+
address: str,
13+
subaccount_number: int,
14+
limit: Optional[int] = None,
15+
market: Optional[str] = None,
16+
market_type: Optional[TickerType] = None,
17+
created_before_or_at_height: Optional[int] = None,
18+
created_before_or_at: Optional[str] = None,
19+
) -> Any
1120
```
1221

1322
```typescript [TypeScript]

vocs-docs/docs/pages/indexer-client/http/accounts/get_parent_subaccount_number_orders.mdx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,19 @@ TODO
77
:::code-group
88

99
```python [Python]
10+
async def list_parent_orders(
11+
self,
12+
address: str,
13+
subaccount_number: int,
14+
limit: Optional[int] = None,
15+
ticker: Optional[str] = None,
16+
side: Optional[OrderSide] = None,
17+
status: Optional[OrderStatus] = None,
18+
order_type: Optional[OrderType] = None,
19+
good_til_block_before_or_at: Optional[int] = None,
20+
good_til_block_time_before_or_at: Optional[str] = None,
21+
return_latest_orders: Optional[bool] = None,
22+
) -> Any
1023
```
1124

1225
```typescript [TypeScript]

vocs-docs/docs/pages/indexer-client/http/accounts/get_parent_subaccount_number_transfers.mdx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,14 @@ TODO
77
:::code-group
88

99
```python [Python]
10-
TODO: Not available
10+
async def get_parent_transfers(
11+
self,
12+
address: str,
13+
subaccount_number: int,
14+
limit: Optional[int] = None,
15+
created_before_or_at_height: Optional[int] = None,
16+
created_before_or_at: Optional[str] = None,
17+
) -> Any
1118
```
1219

1320
```typescript [TypeScript]

vocs-docs/docs/pages/indexer-client/http/accounts/get_parent_transfers.mdx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,14 @@ Query for transfers between subaccounts associated with a parent subaccount.
99
:::code-group
1010

1111
```python [Python]
12-
12+
async def get_parent_transfers(
13+
self,
14+
address: str,
15+
subaccount_number: int,
16+
limit: Optional[int] = None,
17+
created_before_or_at_height: Optional[int] = None,
18+
created_before_or_at: Optional[str] = None,
19+
) -> Any
1320
```
1421

1522
```typescript [TypeScript]

vocs-docs/docs/pages/indexer-client/http/accounts/get_transfers_between.mdx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,15 @@ Fetch information regarding a transfer between two subaccounts.
77
:::code-group
88

99
```python [Python]
10-
10+
async def get_transfer_between(
11+
self,
12+
source_address: str,
13+
source_subaccount_number: int,
14+
recipient_address: str,
15+
recipient_subaccount_number: int,
16+
created_before_or_at_height: Optional[int] = None,
17+
created_before_or_at: Optional[str] = None,
18+
) -> Any
1119
```
1220

1321
```typescript [TypeScript]

vocs-docs/docs/pages/indexer-client/http/accounts/list_parent_orders.mdx

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,19 @@ Query for orders filtered by order params of a parent subaccount.
99
:::code-group
1010

1111
```python [Python]
12-
12+
async def list_parent_orders(
13+
self,
14+
address: str,
15+
subaccount_number: int,
16+
limit: Optional[int] = None,
17+
ticker: Optional[str] = None,
18+
side: Optional[OrderSide] = None,
19+
status: Optional[OrderStatus] = None,
20+
order_type: Optional[OrderType] = None,
21+
good_til_block_before_or_at: Optional[int] = None,
22+
good_til_block_time_before_or_at: Optional[str] = None,
23+
return_latest_orders: Optional[bool] = None,
24+
) -> Any
1325
```
1426

1527
```typescript [TypeScript]

0 commit comments

Comments
 (0)