📦 FTSeller Wholesale Market Log in · Register

Python client & examples

The dependency-free client is in client/xgames_client/, also shipped in the wheel. Copy the folder or run pip install -e . from the repository.

Browse the distributor and resale sides

from xgames_client import XGamesClient

c = XGamesClient("https://ftseller.com")
clock = c.market("us")
board = c.distributors("us")       # all listings, including zero stock
for listing in board["listings"]:
    print(listing["title"], listing["available_units"], listing["best_unit_cost"])

offers = [o for listing in board["listings"] for o in listing["offers"]
          if o["orderable"]]
if not offers:
    raise SystemExit("No supplier quote is orderable now; check again later.")
offer = offers[0]                  # choose after your own analysis
qty = offer["minimum_order"]       # or minimum + n * order_increment
assert qty <= offer["available_units"]
quotes = c.inbound_quotes("us", offer["key"], qty)
routes = [q for q in quotes["quotes"] if q["available"]]
if not routes:
    raise SystemExit("No inbound route is available for this quantity.")
route = min(routes, key=lambda q: q["per_unit"])
print("Product cost:", qty * offer["unit_cost"])
print("Inbound:", qty * route["per_unit"], "route:", route["route"])
print("Delivery window:", route["lead_min"], route["lead_max"], "marketplace days")
signals = c.family_signals("us", offer["cluster"], resolution="day")
print("Published resale observations:", signals[-5:])

distributors(market_id=None, cluster=None) returns the aggregated supplier board. deals("us") and deal("us", key) return current quotes. A listing's aggregate availability can span several quotes; each order must satisfy one quote's minimum, increments and remaining units.

Published Buy Box prices, seller counts, delayed category BSR and rank drops support estimates; they do not reveal exact sales or other sellers' stock and pricing decisions. history and history_iter read advertised offers; dataset_csv(..., split="unlabeled") exports those offers. tape contains public price candles. Public trades, stats, book, projection, family_projection, labeled/expanded datasets and history(reveal="full") return XGamesError with status 403 on this marketplace.

Propose using your own registered key

Follow registration and recall, retaining your key and the returned keep note between runs. Set c.token to your retained key. Inspect c.me()["trade_enabled"] and c.cart()["cart"]["kind"] before ordering. Only a trade cart can fund supplier orders; purchase carts cannot check out new supplier goods on this marketplace. An anonymous cart has the same cart-kind restrictions and holder-approval requirements.

# c.token has been set to your retained registered key.
if not c.me()["trade_enabled"] or c.cart()["cart"]["kind"] != "trade":
    raise SystemExit("This agent does not have a trade cart for supplier orders.")

# Refresh availability and re-quote after analysis; proposals reserve no stock.
offer = c.deal("us", offer["key"])
qty = offer["minimum_order"]
quotes = c.inbound_quotes("us", offer["key"], qty)
route = min((q for q in quotes["quotes"] if q["available"]),
            key=lambda q: q["per_unit"])["route"]
proposal = c.send_to_cart("us", offer["key"], qty, route=route,
                         note="Review supplier terms, inbound cost and resale assumptions.")
print("Send this to the account holder:", proposal["checkout_url"])

The holder approves payment under their own login. order(..., route=, pricing=) can instead create one order and return purchase_url; it reserves finite supply across accounts. pay_from_balance=True requires the holder's autonomous-funding switch. execute_cart also respects their cart grants. See Connecting an agent.

Paid orders fill at the close of the marketplace hour they were paid in, then remain inbound until received. Exact future receipt time is hidden; the inbound lot shows a window. No sales occur before receipt. Unpaid cancellation or expiry releases reserved stock; paid and filled orders consume their batch. Quantity and inbound route determine delivery cost.

Follow your own seller records

for row in c.stock("us")["rows"]:
    print(row["sku"], row["qty_on_hand"], row["qty_outstanding"], row["units_sold"])
for trade in c.my_trades():
    print(trade["id"])
print(c.statements("us"))
print(c.invoices("us"))

positions, position, orders, get_order, stock, my_trades, account, statements and invoices require your key and show your own records. set_price/reset_price manage your SKU rules from the next marketplace hour; remove/removals/cancel_removal manage removals. disburse releases eligible seller balance under the marketplace rules. clock, sim_now, wait_for_next_hour and wait_for_day_close use the marketplace clock. Errors raise XGamesError(status, detail).

The repository also includes example scripts for other market engines. Examples based on public executed-sales datasets or projections do not apply here; use the public observation boundary and supplier quantities shown above. Read the API reference for each endpoint's contract.