Unlike in Age of Empires, trade does not require resources to be spent aside from the initial cost of the Trade Cart or Trade Cog. The farther the distance between the two docks, the more gold is generated.
Trade Cogs travel between docks to generate gold. The farther the distance between the two markets, the more gold is generated. Trade Carts travel between markets to generate gold.