2023.04.24 11:22 AM - edited 2023.04.24 11:23 AM
I am having trouble with Exercise 2.3 in the capstone project. I tried making both trade_id and exch_message as strings, but my solution is still incorrect.
here is the meta messages:
c | t f a
------------| -----
trade_id | C
exch_message| C
broker_id | j
This is my solution:
messages: update trade_id: string trade_id, exch_message, broker_id: extractBrokerId each exch_message from messages
extractBrokerId: {[exchMsg]
temp: "-" vs exchMsg;
msg: temp[0];
res: temp[2];
if[msg~"ISE"; res:temp[1]];
"J"$res
}
2023.04.25 09:22 AM
Hi @bldulam1 - you are very close! I had a go running your solution and see a different meta than what you have shared.
It's the first column trade_id where the issue is - you should not need to add string in front of it.
2023.04.25 09:22 AM
Hi @bldulam1 - you are very close! I had a go running your solution and see a different meta than what you have shared.
It's the first column trade_id where the issue is - you should not need to add string in front of it.
2023.07.12 04:19 PM
He must had ran the update statement twice, hence the issue with trade_id column.
EMEA
Tel: +44 (0)28 3025 2242
AMERICAS
Tel: +1 (212) 447 6700
APAC
Tel: +61 (0)2 9236 5700
KX. All Rights Reserved.
KX and kdb+ are registered trademarks of KX Systems, Inc., a subsidiary of FD Technologies plc.