DevelopersAPIReferencetransfers
CounterAsset
Sets the transfer-counter pair (type asset) on the position; the balance effect is computed on the fly by the engine (legacy…
POST
bearerAuthheader
Authorization<token>A Walletguide API key (wg_…) or an OAuth bearer token. Paste the value only. Create a key under Wallet settings → API keys.
walletId*stringRow uuid
Format
uuidapplication/json- body
source*assetId*stringRow uuid
Format
uuidLinked to the asset
application/json- response
ok*trueValue in
truecurl -X POST 'https://api.walletguide.com/wallets/497f6eca-6276-4993-bfeb-53cbbbba6f08/transfers/counterAsset' \ -H 'Content-Type: application/json' \ -d '{ "source": { "type": "transaction", "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08" }, "assetId": "9179b887-04ef-4ce5-ab3a-b5bbd39ea3c8"}'Example Response
{ "ok": true}Unlink
Clears the transfer-counter pair on the position and — when the counter is a transaction/holding — on the counter position too.
CounterTransaction
Reads the source position, builds the mirror transaction in the target asset (amount negated / holding total price, FX-converted into the asset currency…