|
3 | 3 | from ._transfers import _transfers |
4 | 4 | from ._swaps_by_pair import _swaps_by_pair |
5 | 5 | from ._tokens_by_name import _tokens_by_name |
6 | | -from ._swaps_by_token import _swaps_by_token |
7 | 6 | from ._tokens_by_owner import _tokens_by_owner |
8 | 7 | from ._swaps_by_account import _swaps_by_account |
9 | 8 | from ._tokens_by_symbol import _tokens_by_symbol |
10 | 9 | from ._transfers_by_account import _transfers_by_account |
11 | 10 | from ._tokens_by_date_created import _tokens_by_date_created |
12 | 11 | from ._native_token_transfers import _native_token_transfers |
| 12 | +from ._swaps_by_contract_address import _swaps_by_contract_address |
13 | 13 | from ._tokens_by_contract_address import _tokens_by_contract_address |
14 | 14 | from ._owners_by_contract_address import _owners_by_contract_address |
15 | 15 | from ._transfers_by_contract_address import _transfers_by_contract_address |
@@ -151,16 +151,16 @@ def swaps_by_account(self, |
151 | 151 | limit: int=10) -> List[Swap]: |
152 | 152 | return self.super.perform_authorized_request(Swap, _swaps_by_account(account_address, occurred_after, occurred_before, order, limit)) |
153 | 153 |
|
154 | | - # Get Swaps by Token |
155 | | - # https://api.transpose.io/v0/token/swaps-by-token |
156 | | - def swaps_by_token (self, |
157 | | - token_address: str = None, |
158 | | - direction: str = 'all', |
159 | | - occurred_after: int or str='1970-01-01T00:00:00', |
160 | | - occurred_before: int or str='2050-01-01T00:00:00', |
161 | | - order: str='asc', |
162 | | - limit: int=10) -> List[Swap]: |
163 | | - return self.super.perform_authorized_request(Swap, _swaps_by_token(token_address, direction, occurred_after, occurred_before, order, limit)) |
| 154 | + # Get Swaps by Contract Address |
| 155 | + # https://api.transpose.io/v0/token/swaps-by-contract-address |
| 156 | + def swaps_by_contract_address (self, |
| 157 | + contract_address: str = None, |
| 158 | + direction: str = 'all', |
| 159 | + occurred_after: int or str='1970-01-01T00:00:00', |
| 160 | + occurred_before: int or str='2050-01-01T00:00:00', |
| 161 | + order: str='asc', |
| 162 | + limit: int=10) -> List[Swap]: |
| 163 | + return self.super.perform_authorized_request(Swap, _swaps_by_contract_address(contract_address, direction, occurred_after, occurred_before, order, limit)) |
164 | 164 |
|
165 | 165 | # Get Swaps by Pair |
166 | 166 | # https://api.transpose.io/v0/token/swaps-by-pair |
|
0 commit comments