The following is the 1.0 backend API for Algodex. This is a DeFi service to allow users to trade assets on the Algorand network directly between each other, with wallets hosted elsewhere on MyAlgo Wallet.
The 2.0 backend is a major architectural refactoring and is currently under development.
Can be either of ['1m', '5m', '15m', '1h', '4h', '1d']
Getting complete asset information for an asset that is traded or untraded
This will fetch asset for an information that is either traded or untraded
Params
assetId: the assetId of the asset
Searching Asset information by name or ID
This will query both Algodex and Algoexplorer and present results for both
Params
query: The query string. This can be an integer (for the asset id), or a string to search for the asset name or unit name. Partial name matches work as well.
This is for checking compatibility between the client and the server. If the escrowContractVersion is different, then any orders placed into the order book will not show up in the UI!
Getting asset information for a wallet address
This will query Algodex and return all the assets belonging to a wallet, along with price information and how many are in orders
Params
ownerAddr: the owner address to retrieve the assets for.