crypto-chassis / ccapi

A header-only C++ library for interacting with crypto exchanges. Bindings for Python, Java, C#, Go, and Javascript are provided.
https://discord.gg/b5EKcp9s8T
MIT License
555 stars 192 forks source link

add_compile_definitions(CCAPI_LAST_PRICE="d") #457

Closed go-dockly closed 6 months ago

go-dockly commented 7 months ago

After adding a compile definition to CMakeList: add_compile_definitions(CCAPI_LAST_PRICE="d") and compiling the binding with this annotation the accessing of "LAST_PRICE" does not change: eg: elementNameValueMap.Get("LAST_PRICE") Would I not expect to access it by elementNameValueMap.Get("d")?

cryptochassis commented 7 months ago

It should be elementNameValueMap.Get("d") as you expected. Where did you add add_compile_definitions(CCAPI_LAST_PRICE="d")?