buy_export
Buy an export: a permanent grant over these traders' daily files, usable at once. SPENDS: from the balance (from, to and maxPriceCents required: maxPriceCents is the export_quote price the user agreed to; a higher price is refused with 409 price_changed and nothing is charged) or, with viaPlan, from the plan's export allowance over every day on sale (no from/to/maxPriceCents). Tell the user the price or the allowance it takes and buy only on their explicit yes. Buying the same traders and days again returns the earlier order without a second charge. 402 = balance too low or no paid plan; 409 plan_exhausted = allowance used up.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | last UTC day, YYYY-MM-DD | |
| from | No | first UTC day, YYYY-MM-DD | |
| viaPlan | No | take it from the plan's export allowance instead of the balance | |
| entityIds | Yes | traders: all 12-character handles, or all 0x addresses (not mixed), at most 25 | |
| maxPriceCents | No | the agreed price in whole US cents; a ceiling on the charge |