Skip to content

Commit

Permalink
(fix) Solved several errors in the example scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
abel committed Mar 8, 2024
1 parent c5645ab commit e365b10
Show file tree
Hide file tree
Showing 21 changed files with 3 additions and 333 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ async def main() -> None:
oracle_symbol="UFC-KHABIB-TKO-05/30/2023",
oracle_provider="UFC",
oracle_type="Provider",
quote_decimals=6,
oracle_scale_factor=6,
maker_fee_rate=0.0005, # 0.05%
taker_fee_rate=0.0010, # 0.10%
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ async def main() -> None:

subaccount_id = address.get_subaccount_id(index=0)

orders = await client.fetch_chain_trader_spot_orders(
orders = await client.fetch_chain_trader_derivative_orders(
market_id="0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe6",
subaccount_id=subaccount_id,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ async def main() -> None:
address = pub_key.to_address()
await client.fetch_account(address.to_acc_bech32())

orders = await client.fetch_chain_account_address_spot_orders(
orders = await client.fetch_chain_account_address_derivative_orders(
market_id="0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe6",
account_address=address.to_acc_bech32(),
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ async def main() -> None:

subaccount_id = address.get_subaccount_id(index=0)

orders = await client.fetch_chain_spot_orders_by_hashes(
orders = await client.fetch_chain_derivative_orders_by_hashes(
market_id="0x17ef48032cb24375ba7c2e39f384e56433bcab20cbee9a7357e4cba2eb00abe6",
subaccount_id=subaccount_id,
order_hashes=["0x57a01cd26f1e2080860af3264e865d7c9c034a701e30946d01c1dc7a303cf2c1"],
Expand Down
34 changes: 0 additions & 34 deletions examples/chain_client/exchange/query/41_FeeDiscountAccountInfo.py

This file was deleted.

19 changes: 0 additions & 19 deletions examples/chain_client/exchange/query/42_FeeDiscountSchedule.py

This file was deleted.

19 changes: 0 additions & 19 deletions examples/chain_client/exchange/query/43_BalanceMismatches.py

This file was deleted.

19 changes: 0 additions & 19 deletions examples/chain_client/exchange/query/44_BalanceWithBalanceHolds.py

This file was deleted.

This file was deleted.

19 changes: 0 additions & 19 deletions examples/chain_client/exchange/query/46_MitoVaultInfos.py

This file was deleted.

19 changes: 0 additions & 19 deletions examples/chain_client/exchange/query/47_QueryMarketIDFromVault.py

This file was deleted.

21 changes: 0 additions & 21 deletions examples/chain_client/exchange/query/48_HistoricalTradeRecords.py

This file was deleted.

34 changes: 0 additions & 34 deletions examples/chain_client/exchange/query/49_IsOptedOutOfRewards.py

This file was deleted.

This file was deleted.

30 changes: 0 additions & 30 deletions examples/chain_client/exchange/query/51_MarketVolatility.py

This file was deleted.

19 changes: 0 additions & 19 deletions examples/chain_client/exchange/query/52_BinaryOptionsMarkets.py

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit e365b10

Please sign in to comment.