Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,497 changes: 748 additions & 749 deletions Pipfile.lock

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,10 @@ make tests
* The Composer can still be instantiated without markets and tokens. When markets and tokens are not provided the Composer loads the required information from the Denoms used in previous versions
* Change in AsyncClient to be able to create Composer instances for the client network, markets and tokens
* Examples have been adapted to create Composer instances using the AsyncClient
* Added new nodes (bare-metal load balancing nodes) for mainnet
* Added new nodes (bare-metal load balancing nodes) for mainnet and testnet
* Deprecated the kubernetes load balanced nodes for testnet
* Refactored the cookies management logic into a cookie assistant. Added the required logic to support the new cookies format for bare-metal load balanced nodes
* Removed class Client. The only supported now is the async version called AsyncClient.

**0.7.1.1**
* Fixed Testnet network URLs
Expand Down
2 changes: 1 addition & 1 deletion pyinjective/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from .client import Client
from .async_client import AsyncClient
from .transaction import Transaction
from .wallet import PrivateKey, PublicKey, Address
7 changes: 6 additions & 1 deletion pyinjective/async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -945,7 +945,12 @@ async def _initialize_tokens_and_markets(self):
markets_info = (await self.get_spot_markets()).markets

for market_info in markets_info:
base_token_symbol, quote_token_symbol = market_info.ticker.split(constant.TICKER_TOKENS_SEPARATOR)
if "/" in market_info.ticker:
base_token_symbol, quote_token_symbol = market_info.ticker.split(constant.TICKER_TOKENS_SEPARATOR)
else:
base_token_symbol = market_info.base_token_meta.symbol
quote_token_symbol = market_info.quote_token_meta.symbol

base_token = self._token_representation(
symbol=base_token_symbol,
token_meta=market_info.base_token_meta,
Expand Down
Loading