Skip to content

Commit 99e9cc5

Browse files
committed
2 parents bc1b075 + 9ed12bb commit 99e9cc5

File tree

6 files changed

+9
-8
lines changed

6 files changed

+9
-8
lines changed

.coverage

0 Bytes
Binary file not shown.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ You can find specific documentation on a per-product basis below.
3232
| NFT API | The NFT API provides endpoints for retrieving any collection and NFT in existence, as well as NFT images, operators, owners, transfers, approvals, and much more (fully supports both ERC-721 and ERC-1155 NFTs). | [NFT API Docs](https://github.com/TransposeData/transpose-python-sdk/blob/main/docs/nft.md) |
3333
| Token API | The Token API provides endpoints for retrieving any token, token balance, transfer, and symbol in existence, including full support for native token transfers and balances (fully supports both ERC-20 and ERC-777 tokens). | [Token API Docs](https://github.com/TransposeData/transpose-python-sdk/blob/main/docs/token.md) |
3434
| SQL API | The SQL API provides direct SQL access to our entire ecosystem of indexed blockchain data. Paired with our robust indexing pipeline, SQL access gives unlimited flexibility in how you mix, aggregate, and query activity across the blockchain. | [SQL API Docs](https://github.com/TransposeData/transpose-python-sdk/blob/main/docs/sql.md) |
35-
| Endpoint API | The Endpoint API provides customized REST endpoints that you ca n create, version, and use directly in your production applications. | [Endpoint API Docs](https://github.com/TransposeData/transpose-python-sdk/blob/main/docs/endpoint.md) |
35+
| Endpoint API | The Endpoint API provides customized REST endpoints that you can create, version, and use directly in your production applications. | [Endpoint API Docs](https://github.com/TransposeData/transpose-python-sdk/blob/main/docs/endpoint.md) |
3636

3737
## SDK Documentation
3838
You can learn more about the Transpose SDK and how it works below.
@@ -123,7 +123,7 @@ api.set_chain(1)
123123
<summary>
124124
Opt-in to raw JSON Responses
125125
</summary>
126-
If you wish to recieve responses in JSON format, you can set the `json` parameter to `True` when initializing the SDK. This will return all responses as JSON objects.
126+
If you wish to receive responses in JSON format, you can set the `json` parameter to `True` when initializing the SDK. This will return all responses as JSON objects.
127127

128128
**Response classes are considered deprecated as of v3.1.0 and will be removed in v4.0.0. JSON responses will become standard in v4.0.0**
129129

docs/endpoint.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ The **Endpoint API** provides customized REST endpoints that you ca n create, ve
77
You may use the Endpoint API within your python project as follows:
88

99
```python
10-
api.endpoint.query(endpoint_url: str, paramters: dict) -> dict
10+
api.endpoint.query(endpoint_url: str, parameters: dict) -> dict
1111
```
1212

1313
For example:
@@ -33,4 +33,4 @@ response = api.endpoint.query('ohlc', parameters)
3333

3434
## More Information
3535

36-
You can find more information about the Custom Endpoint API in our [documentation](https://docs.transpose.io/custom-endpoints/overview/).
36+
You can find more information about the Custom Endpoint API in our [documentation](https://docs.transpose.io/custom-endpoints/overview/).

docs/sql.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The **SQL API** provides direct SQL access to our entire ecosystem of indexed bl
99
You may use the SQL API within your python project as follows:
1010

1111
```python
12-
api.sql.query(sql_query: str, paramters: dict) -> dict
12+
api.sql.query(sql_query: str, parameters: dict) -> dict
1313
```
1414

1515
For example:

sonar-project.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ sonar.organization=transposedata
33
sonar.javascript.lcov.reportPaths=./functions/coverage/lcov.info
44
sonar.sources=.
55
sonar.projectDescription=Python SDK wrapper for the Transpose API suite
6-
sonar.python.coverage.reportPaths=coverage.xml
6+
sonar.python.coverage.reportPaths=coverage.xml
7+
sonar.sources=./transpose

tests/test_endpoints.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def test_normalize_5():
102102
'token_address': '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2'
103103
}
104104

105-
response = api.endpoint.query('https://api.transpose.io/endpoint/ohlc/1', parameters)
105+
response = api.endpoint.query('https://api.transpose.io/endpoint/ohlc/3', parameters)
106106

107107
assert response['stats']['count'] >= 1
108108
assert len(response['results']) >= 1
@@ -120,7 +120,7 @@ def test_normalize_6():
120120
'token_address': '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2'
121121
}
122122

123-
response = api.endpoint.query('https://api.transpose.io/endpoint/ohlc/1/', parameters)
123+
response = api.endpoint.query('https://api.transpose.io/endpoint/ohlc/3/', parameters)
124124

125125
assert response['stats']['count'] >= 1
126126
assert len(response['results']) >= 1

0 commit comments

Comments
 (0)