/user_trades_edit

Edit an existing user trade run

Method POST
URL https://uexcorp.space/api/2.0/user_trades_edit/
Input (Header) // required user secret key, should be passed via header, obtained in user profile
secret_key string(40)
Input (POST) id int(11) // required, user trade ID
id_terminal int(11) // required
id_commodity int(11) // required
id_user_fleet int(11) // optional, user fleet vehicle ID
operation string(4) // transaction type, required, should be 'buy' or 'sell'
scu int(11) // required, amount purchased/sold in SCU
price float // required, values in UEC per SCU
is_production int(1) // required for production
JSON input example
{
    "is_production": 0,
    "id": 561,
    "id_terminal": 29,
    "id_commodity": 18,
    "operation": "buy",
    "scu": 240,
    "price": 2441
}
Output -
Responses // user secret key not provided
missing_secret_key

// user not found with provided secret key
user_not_found

// user banned or disabled by administrator
user_not_allowed

// user account not verified on RSI website
user_not_verified

// user secret key length should be exactly 40 characters
invalid_secret_key

// user trade ID not provided
missing_id

// user trade ID not found
trade_not_found

// transaction type not provided
missing_operation

// invalid transaction type - should be buy or sell
invalid_operation

// terminal ID not provided
missing_id_terminal

// terminal ID not found
terminal_not_found

// commodity ID not provided
missing_id_commodity

// commodity ID not found
commodity_not_found

// SCU not provided
missing_scu

// commodity price per SCU not provided
missing_price

// vehicle ID not found
vehicle_not_found

// all good!
ok
Last update: 14 days ago

Optional Required Required as header input

This website uses third-party cookies (like Google Analytics) for stats, no personal data. We use cookies for preferences (dark mode, trading, mining) and collects trade/refining info (commodities, locations) for public reports. No personal data is collected.