-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #125 from InjectiveLabs/f/prepare_release
feat: release v0.5.6.9
- Loading branch information
Showing
12 changed files
with
376 additions
and
277 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
examples/exchange_client/derivative_exchange_rpc/19_Binary_Options_Markets.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Copyright 2021 Injective Labs | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
"""Injective Exchange API client for Python. Example only.""" | ||
|
||
import asyncio | ||
import logging | ||
|
||
from pyinjective.async_client import AsyncClient | ||
from pyinjective.constant import Network | ||
|
||
async def main() -> None: | ||
network = Network.testnet() | ||
client = AsyncClient(network, insecure=False) | ||
market_status = "active" # active, paused, suspended, demolished or expired | ||
quote_denom = "peggy0xdAC17F958D2ee523a2206206994597C13D831ec7" | ||
market = await client.get_binary_options_markets( | ||
market_status=market_status, | ||
quote_denom=quote_denom | ||
) | ||
|
||
print(market) | ||
|
||
if __name__ == '__main__': | ||
logging.basicConfig(level=logging.INFO) | ||
asyncio.get_event_loop().run_until_complete(main()) |
31 changes: 31 additions & 0 deletions
31
examples/exchange_client/derivative_exchange_rpc/20_Binary_Options_Market.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Copyright 2021 Injective Labs | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
"""Injective Exchange API client for Python. Example only.""" | ||
|
||
import asyncio | ||
import logging | ||
|
||
from pyinjective.async_client import AsyncClient | ||
from pyinjective.constant import Network | ||
|
||
async def main() -> None: | ||
network = Network.testnet() | ||
client = AsyncClient(network, insecure=False) | ||
market_id = "0x12d35c0b585f21c266b6f11855aea196245d90a49c0d6844e48f1a7049fa629e" | ||
market = await client.get_binary_options_market(market_id=market_id) | ||
print(market) | ||
|
||
if __name__ == '__main__': | ||
logging.basicConfig(level=logging.INFO) | ||
asyncio.get_event_loop().run_until_complete(main()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 25 additions & 18 deletions
43
pyinjective/proto/exchange/injective_derivative_exchange_rpc_pb2.py
Large diffs are not rendered by default.
Oops, something went wrong.
39 changes: 23 additions & 16 deletions
39
pyinjective/proto/exchange/injective_spot_exchange_rpc_pb2.py
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.