Skip to content

Update Definitions.py to match API Docs - #44

Closed
Gilgahex wants to merge 1 commit into
massive-com:masterfrom
Gilgahex:master
Closed

Update Definitions.py to match API Docs#44
Gilgahex wants to merge 1 commit into
massive-com:masterfrom
Gilgahex:master

Conversation

@Gilgahex

@Gilgahex Gilgahex commented Jan 7, 2021

Copy link
Copy Markdown

I was surprised to find that the API Docs are a little off

A simple update find and replace for
after_hours -> afterHours

afterHours

Screenshot_2021-01-07_08-43-43

after_hours -> afterHours
@jbonzo

jbonzo commented Jan 7, 2021

Copy link
Copy Markdown
Collaborator

This was done intentionally to follow Python's coding style of snake casing. This dictionary maps the api response attribute names to conventional Python names.

@Gilgahex

Gilgahex commented Jan 7, 2021

Copy link
Copy Markdown
Author

For the sake of consistency then shouldn't preMarket be pre_market

@jbonzo

jbonzo commented Jan 26, 2021

Copy link
Copy Markdown
Collaborator

For the sake of consistency then shouldn't preMarket be pre_market

@Gilgahex You are right it is currently inconsistent. I will make a new PR addressing this and will let you know when that's up.

@jbonzo jbonzo mentioned this pull request Jan 26, 2021
@jbonzo

jbonzo commented Jan 26, 2021

Copy link
Copy Markdown
Collaborator

@Gilgahex I made a PR that should address the problems presented here. #49

This repo does need some more love. Originally most all the code written here was generated from our swagger spec. We have since updated our spec to use Open API 3 and have corrected a lot of the content there.

@jbonzo jbonzo closed this Jan 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants