Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jiajames committed Jun 20, 2024
1 parent 93227ef commit 1d2d17d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion pages/api_integration-guides/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
"how_to_uncross_orderbook": "How to uncross the orderbook",
"how_to_interpret_block_data_for_trades": "How to interpret block data for trades",
"setting_up_raspberry_pi_for_api_trading": "Setting up Raspberry Pi for API Trading",
"cli_python_script": "CLI Python Script"
"cli_python_script": "CLI Python Script",
"how_to_transfer_tokens_between_accounts": "How to transfer tokens between accounts"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Tab, Tabs } from "nextra-theme-docs";

# How to transfer
# How to transfer tokens between accounts

## Account types

Expand Down Expand Up @@ -200,7 +200,7 @@ tx = client.post.transfer(

* Asset

Asset ID can be fetched using the `/dydxprotocol/assets/asset` endpoint. [Example](https://dydx-api.lavenderfive.com:443/dydxprotocol/assets/asset)
Asset ID can be fetched using the `/dydxprotocol/assets/asset` endpoint ([Example](https://dydx-api.lavenderfive.com:443/dydxprotocol/assets/asset)).
Collateral token (USDC) will have an asset ID `0`.

* Quantums
Expand All @@ -210,7 +210,7 @@ For collateral token, multiply by 10^6. For example, `100 USDC = 100_000_000 qua
## Pulling current balance

**Main Account**
* Token balances can be fetched via `/cosmos/bank/v1beta1/balances/{address}` endpoint. [Example](https://dydx-rest.publicnode.com:443/cosmos/bank/v1beta1/balances/dydx100l9m6g70j28g2tk3jj4plmge8vsmj6jdrlzhk)
* Token balances can be fetched via `/cosmos/bank/v1beta1/balances/{address}` endpoint ([Example](https://dydx-rest.publicnode.com:443/cosmos/bank/v1beta1/balances/dydx100l9m6g70j28g2tk3jj4plmge8vsmj6jdrlzhk)).

**Subaccounts**
* Collateral token position/balance can be fetched via `/dydxprotocol/subaccounts/subaccount/{address}/{subaccountNumber}` endpoint. [Example](https://dydx-api.lavenderfive.com:443/dydxprotocol/subaccounts/subaccount/dydx100l9m6g70j28g2tk3jj4plmge8vsmj6jdrlzhk/0)

0 comments on commit 1d2d17d

Please sign in to comment.