eu90h / mockfighter

Mockfighter is a Stockfighter clone
MIT License
15 stars 1 forks source link

accepting "symbol" vs "stock" in incoming POSTs #9

Closed rooklift closed 8 years ago

rooklift commented 8 years ago

See https://starfighter.readme.io/docs/place-new-order

Officially, the correct JSON fieldname when POSTing to the server is "stock" not "symbol". The official server accepts both though. But when I fixed this issue in my own client code, I could no longer place orders on Mockfighter: I believe it only accepts "symbol". (My ability to read LISP is non-existant.)

User cite-reader told me about this.

eu90h commented 8 years ago

Good catch, I'll fix this tonight/tomorrow. On a side note, I really appreciate all the bug finding you've done!

rooklift commented 8 years ago

Thanks. I don't know if you'll like this or not but you inspired me to make my own version of the server, at https://github.com/fohristiwhirl/disorderBook

eu90h commented 8 years ago

Awesome! The server should accept symbol and stock now.