CPX Module

class CPX(*args: Any, **kwargs: Any)

Bases: Cog

Chiipoints Exchange (CPX)

cpx = <discord.app_commands.commands.Group object>
async market(interaction: Interaction)

Permissions

Author: Love Live Radio guild

Bot: View Channel, Send Messages (plus Connect/Speak for voice commands)

Syntax:

/cpx market
async buy(interaction: Interaction, symbol: str, shares: int)

Permissions

Author: Love Live Radio guild

Bot: View Channel, Send Messages (plus Connect/Speak for voice commands)

Syntax:

/cpx buy
async sell(interaction: Interaction, symbol: str, shares: int)

Permissions

Author: Love Live Radio guild

Bot: View Channel, Send Messages (plus Connect/Speak for voice commands)

Syntax:

/cpx sell
async news(interaction: Interaction)

Permissions

Author: Love Live Radio guild

Bot: View Channel, Send Messages (plus Connect/Speak for voice commands)

Syntax:

/cpx news
async portfolio(interaction: Interaction, member: Member | None = None)

Permissions

Author: Love Live Radio guild

Bot: View Channel, Send Messages (plus Connect/Speak for voice commands)

Syntax:

/cpx portfolio
async stonks(interaction: Interaction, asset_1: str, asset_2: str | None = None, asset_3: str | None = None, days: int | None = None)

Permissions

Author: Love Live Radio guild

Bot: View Channel, Send Messages (plus Connect/Speak for voice commands)

Syntax:

/cpx stonks
async setprice(ctx: Context, symbol: str, price: int)

Manually set the current price of a CPX asset

Aliases: cpxsetprice

Permissions

Author: LLR Admin (server owner / bot owner)

Bot: View Channel, Send Messages (plus Connect/Speak for voice commands)

async addasset(ctx: Context, symbol: str, name: str, asset_type: str, base_price: int, *, match_string: str)

Add a new asset to the CPX market

Aliases: cpxaddasset

Permissions

Author: LLR Admin (server owner / bot owner)

Bot: View Channel, Send Messages (plus Connect/Speak for voice commands)

async map_child_parent(ctx: Context, child: str, parent: str, weight: float)

Map a child asset to a parent asset with spillover weight

Aliases: cpxmap

Permissions

Author: LLR Admin (server owner / bot owner)

Bot: View Channel, Send Messages (plus Connect/Speak for voice commands)

async unmap_child_parent(ctx: Context, child: str, parent: str)

Remove a mapping between child and parent assets

Aliases: cpxunmap

Permissions

Author: LLR Admin (server owner / bot owner)

Bot: View Channel, Send Messages (plus Connect/Speak for voice commands)

async deactivate_asset(ctx: Context, symbol: str)

Deactivate a CPX asset (removes from active trading)

Aliases: cpxdeactivate

Permissions

Author: LLR Admin (server owner / bot owner)

Bot: View Channel, Send Messages (plus Connect/Speak for voice commands)

async graph(ctx: Context)

Display the asset mapping hierarchy tree

Aliases: cpxgraph

Permissions

Author: LLR Admin (server owner / bot owner)

Bot: View Channel, Send Messages (plus Connect/Speak for voice commands)

async importassets(ctx: Context)

Import assets and mappings from CSV files (attach 2 files: assets CSV and mappings CSV)

Aliases: cpximport

Permissions

Author: LLR Admin (server owner / bot owner)

Bot: View Channel, Send Messages (plus Connect/Speak for voice commands)

async exportassets(ctx: Context)

Export all assets and mappings to CSV files

Aliases: cpxexport

Permissions

Author: LLR Admin (server owner / bot owner)

Bot: View Channel, Send Messages (plus Connect/Speak for voice commands)

async exportstate(ctx: Context)

Export full CPX state snapshot (assets, portfolios, news) to CSV files

Aliases: cpxexportstate

Permissions

Author: LLR Admin (server owner / bot owner)

Bot: View Channel, Send Messages (plus Connect/Speak for voice commands)

async update_market(ctx: Context)

Manually trigger a market price update for all assets

Aliases: cpxupdate

Permissions

Author: LLR Admin (server owner / bot owner)

Bot: View Channel, Send Messages (plus Connect/Speak for voice commands)

async remap_asset(ctx: Context, child: str, old_parent: str, new_parent: str, weight: float | None = None)

Move an asset mapping from one parent to another (preserves weight)

Aliases: cpxremap

Permissions

Author: LLR Admin (server owner / bot owner)

Bot: View Channel, Send Messages (plus Connect/Speak for voice commands)