diff --git a/v4-client-py-v2/dydx_v4_client/indexer/rest/constants.py b/v4-client-py-v2/dydx_v4_client/indexer/rest/constants.py index 70f0900b..f6679e23 100644 --- a/v4-client-py-v2/dydx_v4_client/indexer/rest/constants.py +++ b/v4-client-py-v2/dydx_v4_client/indexer/rest/constants.py @@ -40,6 +40,8 @@ class OrderStatus: FILLED = "FILLED" BEST_EFFORT_CANCELED = "BEST_EFFORT_CANCELED" CANCELED = "CANCELED" + UNTRIGGERED = "UNTRIGGERED" + PENDING = "PENDING" class TickerType: diff --git a/v4-client-py-v2/dydx_v4_client/network.py b/v4-client-py-v2/dydx_v4_client/network.py index e0ae9266..ce0232e6 100644 --- a/v4-client-py-v2/dydx_v4_client/network.py +++ b/v4-client-py-v2/dydx_v4_client/network.py @@ -56,7 +56,7 @@ def make_config( make_testnet = partial( make_secure, testnet_node, - rest_indexer="https://dydx-testnet.imperator.co", + rest_indexer="https://indexer.v4testnet.dydx.exchange", websocket_indexer="wss://indexer.v4testnet.dydx.exchange/v4/ws", node_url="test-dydx-grpc.kingnodes.com", ) diff --git a/v4-client-py-v2/examples/long_term_order_cancel_example.py b/v4-client-py-v2/examples/long_term_order_cancel_example.py index 1467d1e0..b9008ac7 100644 --- a/v4-client-py-v2/examples/long_term_order_cancel_example.py +++ b/v4-client-py-v2/examples/long_term_order_cancel_example.py @@ -11,6 +11,7 @@ from dydx_v4_client.node.client import NodeClient from dydx_v4_client.node.market import Market, since_now from dydx_v4_client.wallet import Wallet +from dydx_v4_client.indexer.rest.constants import OrderType from tests.conftest import DYDX_TEST_MNEMONIC, TEST_ADDRESS MARKET_ID = "ETH-USD" @@ -44,8 +45,9 @@ async def test(): ), ) print(place) - # FIXME(piwonskp): Remove + wallet.sequence += 1 + time.sleep(5) time.sleep(5)