In order, as of patch 7.05:
Sometimes you've got more gold than you have slot space. Maybe getting that S&Y, Desolator, and Bloodstone weren't the "optimal" choices... or were they?
I made up this list to give you an idea of where your slot value is going.
Highest Value with Unique Items and BoT L2:
7720 + 7195 + 6400 + 6200 + 5900 + 3000 (BoT) + 4000 (Shard) = 40,415 gold
As above, without the Rapier:
7720 + 7195 + 6400 + 5800 + 5900 + 3000 (BoT) + 4000 (Shard) = 40,015 gold
Sample generic 7-slotted values (No Rapiers):
Strength Carry (no BKB)
Abyssal, Satanic, Mjolnir, Heart, A/C, BoT2 + Shard = 35,650 gold
Agility Carry (no BKB)
Butterfly, Heart, Skadi, Deadalus, Manta, BoT2 + Shard = 34,320 gold
Intelligence Carry (no BKB)
Dagon5, Bloodthorn, Octarine Core, Scythe, Skadi, BoT2 + Shard = 39,290 gold
Hypothesis: Intelligence carries need the most gold to get their "best" items, and Agility carries need the least gold for their most desired items (theoretically - I would probably argue that Int carries don't need a Moon Shard as badly, and that Bloodthorn is a good item for all carries).
Bloodthorn (7195)
Abyssal Blade (6400)
Divine Rapier (6200)
Octarine Core (5900)
Satanic (5800)
Skadi (5775)
Mjolnir (5700)
Scythe of Vyse (5700)
Butterfly (5525)
Deadalus (5520)
Heart of Tarrasque (5500)
Monkey King Bar (MKB) (5400)
Guardian Greaves (5375)
Silver Edge (5350)
Assault Cuirass (5250)
Refresher Orb (5200)
Radiance (5150)
Necronomicon L3 (5050)
Manta Style (5000)
Bloodstone (4900)
Linkin's Sphere (4850)
Ethereal Blade (4700)
Shiva's Guard (4700)
Hurricane Pike (4625)
Battlefury (4500)
Aghanim's Sceptre (4200)
Sange & Yasha (4100)
Moon Shard (4000)
Lotus Orb (4000)
Black King Bar (BKB) - (3975)
...
Boots of Travel L2 (3000)