this is what im getting back for a account response
i expect something like
{“id”:“NNNNxxNX-NNxN-NNNN-Nxxx-xNxxNNNNxxNN”,“account_number”:“NNNNNNxxxx”,“status”:“ACTIVE”,“currency”:“USD”,“buying_power”:“2692.35”,“regt_buying_power”:“”,“daytrading_buying_power”:“”,“cash”:“2692.35”,“portfolio_value”:“”,“pattern_day_trader”:false,“trading_blocked”:false,“transfers_blocked”:false,“account_blocked”:false,“created_at”:“2019-09-01T00:00:00.000000Z”,“trade_suspended_by_user”:false,“multiplier”:“2”,“shorting_enabled”:false,“equity”:“2692.35”,“last_equity”:“2700.0000”,“long_market_value”:“12.06”,“short_market_value”:“0”,“initial_margin”:“12.06”,“maintenance_margin”:“12.06”,“last_maintenance_margin”:“0”,“sma”:“33.04”,“daytrade_count”:“0”}
but i get
{“message”:“forbidden.”}
PKDWFOTSKBOJARI9PEN5
DN9ikzaeQcfr6MHyDSW06qfuGEBVcPY20HDdFDrG
weird api responses
Update: it might be an error on my system if the api keys didn’t reset after the account was changed to new defaluts on alpaca, e.x. if it was using old api keys
new update: i tried my system on another account and it works fine so im not sure whos side this is on
{“id”:“607c6703-9cca-4a44-adda-80a78d95090d”,“admin_configurations”:{},“user_configurations”:null,“account_number”:“PA3PZIKOCKG6”,“status”:“ACTIVE”,“crypto_status”:“ACTIVE”,“options_approved_level”:2,“options_trading_level”:2,“currency”:“USD”,“buying_power”:“20000”,“regt_buying_power”:“20000”,“daytrading_buying_power”:“0”,“effective_buying_power”:“20000”,“non_marginable_buying_power”:“10000”,“options_buying_power”:“10000”,“bod_dtbp”:“0”,“cash”:“10000”,“accrued_fees”:“0”,“pending_transfer_in”:“0”,“portfolio_value”:“10000”,“pattern_day_trader”:false,“trading_blocked”:false,“transfers_blocked”:false,“account_blocked”:false,“created_at”:“2024-05-20T20:26:37.99521Z”,“trade_suspended_by_user”:false,“multiplier”:“2”,“shorting_enabled”:true,“equity”:“10000”,“last_equity”:“10000”,“long_market_value”:“0”,“short_market_value”:“0”,“position_market_value”:“0”,“initial_margin”:“0”,“maintenance_margin”:“0”,“last_maintenance_margin”:“0”,“sma”:“0”,“daytrade_count”:0,“balance_asof”:“2024-05-17”,“crypto_tier”:0,“intraday_adjustments”:“0”,“pending_reg_taf_fees”:“0”}
upon further inspection the account traded although it shouldn’t have, since there was only. one way commutation going to alpaca so the server couldn’t react to the trades correctly since there was no data sent back to my end
just wanted to tag you guys in on this since it looks like a bug
@Dan_Whitnable_Alpaca
@hitoshi