Skip to content

Commit e365b10

Browse files
author
abel
committed
(fix) Solved several errors in the example scripts
1 parent c5645ab commit e365b10

21 files changed

+3
-333
lines changed

examples/chain_client/exchange/13_MsgInstantBinaryOptionsMarketLaunch.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ async def main() -> None:
3939
oracle_symbol="UFC-KHABIB-TKO-05/30/2023",
4040
oracle_provider="UFC",
4141
oracle_type="Provider",
42-
quote_decimals=6,
4342
oracle_scale_factor=6,
4443
maker_fee_rate=0.0005, # 0.05%
4544
taker_fee_rate=0.0010, # 0.10%

examples/chain_client/exchange/query/23_TraderDerivativeOrders.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ async def main() -> None:
2626

2727
subaccount_id = address.get_subaccount_id(index=0)
2828

29-
orders = await client.fetch_chain_trader_spot_orders(
29+
orders = await client.fetch_chain_trader_derivative_orders(
3030
market_id="0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe6",
3131
subaccount_id=subaccount_id,
3232
)

examples/chain_client/exchange/query/24_AccountAddressDerivativeOrders.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ async def main() -> None:
2424
address = pub_key.to_address()
2525
await client.fetch_account(address.to_acc_bech32())
2626

27-
orders = await client.fetch_chain_account_address_spot_orders(
27+
orders = await client.fetch_chain_account_address_derivative_orders(
2828
market_id="0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe6",
2929
account_address=address.to_acc_bech32(),
3030
)

examples/chain_client/exchange/query/25_DerivativeOrdersByHashes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ async def main() -> None:
2626

2727
subaccount_id = address.get_subaccount_id(index=0)
2828

29-
orders = await client.fetch_chain_spot_orders_by_hashes(
29+
orders = await client.fetch_chain_derivative_orders_by_hashes(
3030
market_id="0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe6",
3131
subaccount_id=subaccount_id,
3232
order_hashes=["0x57a01cd26f1e2080860af3264e865d7c9c034a701e30946d01c1dc7a303cf2c1"],

examples/chain_client/exchange/query/33_SubaccountPossitionInMarket.py renamed to examples/chain_client/exchange/query/33_SubaccountPositionInMarket.py

File renamed without changes.

examples/chain_client/exchange/query/34_SubaccountEffectivePossitionInMarket.py renamed to examples/chain_client/exchange/query/34_SubaccountEffectivePositionInMarket.py

File renamed without changes.

examples/chain_client/exchange/query/41_FeeDiscountAccountInfo.py

Lines changed: 0 additions & 34 deletions
This file was deleted.

examples/chain_client/exchange/query/42_FeeDiscountSchedule.py

Lines changed: 0 additions & 19 deletions
This file was deleted.

examples/chain_client/exchange/query/43_BalanceMismatches.py

Lines changed: 0 additions & 19 deletions
This file was deleted.

examples/chain_client/exchange/query/44_BalanceWithBalanceHolds.py

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)