> For the complete documentation index, see [llms.txt](https://docs.atomicalmarket.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.atomicalmarket.com/api/guides/assets-buying.md).

# Assets Buying&#x20;

Workflow for assets buying.

1. Prepare buying

{% openapi src="/files/EhlQrEhRJOmoaUrfFxb2" path="/market/v1/{market}/bulk-buy" method="post" %}
[json 1503.json](https://46173898-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcsPhR6KWjYNyFUZFICd3%2Fuploads%2FrqrormeBCVFGy4pYGT5A%2Fjson%201503.json?alt=media\&token=7a15ade9-9f83-44b3-8706-a5b0232c8309)
{% endopenapi %}

2. Client sign `psbt` from last step's response

```javascript
const signedPsbt = await unisat.signPsbt(psbt, {
	autoFinalized: false
})
```

3. Confirm buying\
   `psbt` in the post body is last step's `signedPsbt`

{% openapi src="/files/EhlQrEhRJOmoaUrfFxb2" path="/market/v1/bid/bulk-confirm" method="post" %}
[json 1503.json](https://46173898-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcsPhR6KWjYNyFUZFICd3%2Fuploads%2FrqrormeBCVFGy4pYGT5A%2Fjson%201503.json?alt=media\&token=7a15ade9-9f83-44b3-8706-a5b0232c8309)
{% endopenapi %}
