moabdb (version 0.1.35)
index
/Users/jacksoncoxson/Local_Code/moabdb-py/moabdb/__init__.py

MoabDB

 
Package Contents
       
constants
errors
lib
proto_wrapper
protocol_pb2
timewindows

 
Classes
       
google.protobuf.message.Message(builtins.object)
PATH.moabdb_pb2.Request(google.protobuf.pyext._message.CMessage, google.protobuf.message.Message)
PATH.moabdb_pb2.Response(google.protobuf.pyext._message.CMessage, google.protobuf.message.Message)
google.protobuf.pyext._message.CMessage(builtins.object)
PATH.moabdb_pb2.Request(google.protobuf.pyext._message.CMessage, google.protobuf.message.Message)
PATH.moabdb_pb2.Response(google.protobuf.pyext._message.CMessage, google.protobuf.message.Message)

 
REQUEST = class Request(google.protobuf.pyext._message.CMessage, google.protobuf.message.Message)
    
Method resolution order:
Request
google.protobuf.pyext._message.CMessage
google.protobuf.message.Message
builtins.object

Methods defined here:
send(request: PATH.moabdb_pb2.Request, url) -> PATH.moabdb_pb2.Response
Sends a request to the MoabDB API
:param Request: The request to send
:return: The response from the server

Data descriptors defined here:
datatype
Field Request.datatype
end
Field Request.end
start
Field Request.start
symbol
Field Request.symbol
token
Field Request.token
username
Field Request.username

Data and other attributes defined here:
DESCRIPTOR = <google.protobuf.pyext._message.MessageDescriptor object>

Methods inherited from google.protobuf.pyext._message.CMessage:
ByteSize(...)
Returns the size of the message in bytes.
Clear(...)
Clears the message.
ClearExtension(...)
Clears a message field.
ClearField(...)
Clears a message field.
CopyFrom(...)
Copies a protocol message into the current message.
DiscardUnknownFields(...)
Discards the unknown fields.
FindInitializationErrors(...)
Finds unset required fields.
HasExtension(...)
Checks if a message field is set.
HasField(...)
Checks if a message field is set.
IsInitialized(...)
Checks if all required fields of a protocol message are set.
ListFields(...)
Lists all set fields of a message.
MergeFrom(...)
Merges a protocol message into the current message.
MergeFromString(...)
Merges a serialized message into the current message.
ParseFromString(...)
Parses a serialized message into the current message.
SerializePartialToString(...)
Serializes the message to a string, even if it isn't initialized.
SerializeToString(...)
Serializes the message to a string, only for initialized messages.
SetInParent(...)
Sets the has bit of the given field in its parent message.
UnknownFields(...)
Parse unknown field set
WhichOneof(...)
Returns the name of the field set inside a oneof, or None if no field is set.
__deepcopy__(...)
Makes a deep copy of the class.
__eq__(self, value, /)
Return self==value.
__ge__(self, value, /)
Return self>=value.
__getattribute__(self, name, /)
Return getattr(self, name).
__gt__(self, value, /)
Return self>value.
__init__(self, /, *args, **kwargs)
Initialize self.  See help(type(self)) for accurate signature.
__le__(self, value, /)
Return self<=value.
__lt__(self, value, /)
Return self<value.
__ne__(self, value, /)
Return self!=value.
__repr__(self, /)
Return repr(self).
__str__(self, /)
Return str(self).
__unicode__(...)
Outputs a unicode representation of the message.

Class methods inherited from google.protobuf.pyext._message.CMessage:
FromString(...) from google.protobuf.pyext.cpp_message.GeneratedProtocolMessageType
Creates new method instance from given serialized data.
RegisterExtension(...) from google.protobuf.pyext.cpp_message.GeneratedProtocolMessageType
Registers an extension with the current message.

Static methods inherited from google.protobuf.pyext._message.CMessage:
__new__(*args, **kwargs) from google.protobuf.pyext._message.MessageMeta
Create and return a new object.  See help(type) for accurate signature.

Data descriptors inherited from google.protobuf.pyext._message.CMessage:
Extensions
Extension dict

Data and other attributes inherited from google.protobuf.pyext._message.CMessage:
__hash__ = None

Methods inherited from google.protobuf.message.Message:
__getstate__(self)
Support the pickle protocol.
__reduce__(self)
Helper for pickle.
__setstate__(self, state)
Support the pickle protocol.

 
RESPONSE = class Response(google.protobuf.pyext._message.CMessage, google.protobuf.message.Message)
    
Method resolution order:
Response
google.protobuf.pyext._message.CMessage
google.protobuf.message.Message
builtins.object

Methods defined here:
throw(res: PATH.moabdb_pb2.Response)
Throws appropriate errors for bad res codes

Data descriptors defined here:
code
Field Response.code
data
Field Response.data
message
Field Response.message

Data and other attributes defined here:
DESCRIPTOR = <google.protobuf.pyext._message.MessageDescriptor object>

Methods inherited from google.protobuf.pyext._message.CMessage:
ByteSize(...)
Returns the size of the message in bytes.
Clear(...)
Clears the message.
ClearExtension(...)
Clears a message field.
ClearField(...)
Clears a message field.
CopyFrom(...)
Copies a protocol message into the current message.
DiscardUnknownFields(...)
Discards the unknown fields.
FindInitializationErrors(...)
Finds unset required fields.
HasExtension(...)
Checks if a message field is set.
HasField(...)
Checks if a message field is set.
IsInitialized(...)
Checks if all required fields of a protocol message are set.
ListFields(...)
Lists all set fields of a message.
MergeFrom(...)
Merges a protocol message into the current message.
MergeFromString(...)
Merges a serialized message into the current message.
ParseFromString(...)
Parses a serialized message into the current message.
SerializePartialToString(...)
Serializes the message to a string, even if it isn't initialized.
SerializeToString(...)
Serializes the message to a string, only for initialized messages.
SetInParent(...)
Sets the has bit of the given field in its parent message.
UnknownFields(...)
Parse unknown field set
WhichOneof(...)
Returns the name of the field set inside a oneof, or None if no field is set.
__deepcopy__(...)
Makes a deep copy of the class.
__eq__(self, value, /)
Return self==value.
__ge__(self, value, /)
Return self>=value.
__getattribute__(self, name, /)
Return getattr(self, name).
__gt__(self, value, /)
Return self>value.
__init__(self, /, *args, **kwargs)
Initialize self.  See help(type(self)) for accurate signature.
__le__(self, value, /)
Return self<=value.
__lt__(self, value, /)
Return self<value.
__ne__(self, value, /)
Return self!=value.
__repr__(self, /)
Return repr(self).
__str__(self, /)
Return str(self).
__unicode__(...)
Outputs a unicode representation of the message.

Class methods inherited from google.protobuf.pyext._message.CMessage:
FromString(...) from google.protobuf.pyext.cpp_message.GeneratedProtocolMessageType
Creates new method instance from given serialized data.
RegisterExtension(...) from google.protobuf.pyext.cpp_message.GeneratedProtocolMessageType
Registers an extension with the current message.

Static methods inherited from google.protobuf.pyext._message.CMessage:
__new__(*args, **kwargs) from google.protobuf.pyext._message.MessageMeta
Create and return a new object.  See help(type) for accurate signature.

Data descriptors inherited from google.protobuf.pyext._message.CMessage:
Extensions
Extension dict

Data and other attributes inherited from google.protobuf.pyext._message.CMessage:
__hash__ = None

Methods inherited from google.protobuf.message.Message:
__getstate__(self)
Support the pickle protocol.
__reduce__(self)
Helper for pickle.
__setstate__(self, state)
Support the pickle protocol.

 
class Request(google.protobuf.pyext._message.CMessage, google.protobuf.message.Message)
    
Method resolution order:
Request
google.protobuf.pyext._message.CMessage
google.protobuf.message.Message
builtins.object

Methods defined here:
send(request: PATH.moabdb_pb2.Request, url) -> PATH.moabdb_pb2.Response
Sends a request to the MoabDB API
:param Request: The request to send
:return: The response from the server

Data descriptors defined here:
datatype
Field Request.datatype
end
Field Request.end
start
Field Request.start
symbol
Field Request.symbol
token
Field Request.token
username
Field Request.username

Data and other attributes defined here:
DESCRIPTOR = <google.protobuf.pyext._message.MessageDescriptor object>

Methods inherited from google.protobuf.pyext._message.CMessage:
ByteSize(...)
Returns the size of the message in bytes.
Clear(...)
Clears the message.
ClearExtension(...)
Clears a message field.
ClearField(...)
Clears a message field.
CopyFrom(...)
Copies a protocol message into the current message.
DiscardUnknownFields(...)
Discards the unknown fields.
FindInitializationErrors(...)
Finds unset required fields.
HasExtension(...)
Checks if a message field is set.
HasField(...)
Checks if a message field is set.
IsInitialized(...)
Checks if all required fields of a protocol message are set.
ListFields(...)
Lists all set fields of a message.
MergeFrom(...)
Merges a protocol message into the current message.
MergeFromString(...)
Merges a serialized message into the current message.
ParseFromString(...)
Parses a serialized message into the current message.
SerializePartialToString(...)
Serializes the message to a string, even if it isn't initialized.
SerializeToString(...)
Serializes the message to a string, only for initialized messages.
SetInParent(...)
Sets the has bit of the given field in its parent message.
UnknownFields(...)
Parse unknown field set
WhichOneof(...)
Returns the name of the field set inside a oneof, or None if no field is set.
__deepcopy__(...)
Makes a deep copy of the class.
__eq__(self, value, /)
Return self==value.
__ge__(self, value, /)
Return self>=value.
__getattribute__(self, name, /)
Return getattr(self, name).
__gt__(self, value, /)
Return self>value.
__init__(self, /, *args, **kwargs)
Initialize self.  See help(type(self)) for accurate signature.
__le__(self, value, /)
Return self<=value.
__lt__(self, value, /)
Return self<value.
__ne__(self, value, /)
Return self!=value.
__repr__(self, /)
Return repr(self).
__str__(self, /)
Return str(self).
__unicode__(...)
Outputs a unicode representation of the message.

Class methods inherited from google.protobuf.pyext._message.CMessage:
FromString(...) from google.protobuf.pyext.cpp_message.GeneratedProtocolMessageType
Creates new method instance from given serialized data.
RegisterExtension(...) from google.protobuf.pyext.cpp_message.GeneratedProtocolMessageType
Registers an extension with the current message.

Static methods inherited from google.protobuf.pyext._message.CMessage:
__new__(*args, **kwargs) from google.protobuf.pyext._message.MessageMeta
Create and return a new object.  See help(type) for accurate signature.

Data descriptors inherited from google.protobuf.pyext._message.CMessage:
Extensions
Extension dict

Data and other attributes inherited from google.protobuf.pyext._message.CMessage:
__hash__ = None

Methods inherited from google.protobuf.message.Message:
__getstate__(self)
Support the pickle protocol.
__reduce__(self)
Helper for pickle.
__setstate__(self, state)
Support the pickle protocol.

 
class Response(google.protobuf.pyext._message.CMessage, google.protobuf.message.Message)
    
Method resolution order:
Response
google.protobuf.pyext._message.CMessage
google.protobuf.message.Message
builtins.object

Methods defined here:
throw(res: PATH.moabdb_pb2.Response)
Throws appropriate errors for bad res codes

Data descriptors defined here:
code
Field Response.code
data
Field Response.data
message
Field Response.message

Data and other attributes defined here:
DESCRIPTOR = <google.protobuf.pyext._message.MessageDescriptor object>

Methods inherited from google.protobuf.pyext._message.CMessage:
ByteSize(...)
Returns the size of the message in bytes.
Clear(...)
Clears the message.
ClearExtension(...)
Clears a message field.
ClearField(...)
Clears a message field.
CopyFrom(...)
Copies a protocol message into the current message.
DiscardUnknownFields(...)
Discards the unknown fields.
FindInitializationErrors(...)
Finds unset required fields.
HasExtension(...)
Checks if a message field is set.
HasField(...)
Checks if a message field is set.
IsInitialized(...)
Checks if all required fields of a protocol message are set.
ListFields(...)
Lists all set fields of a message.
MergeFrom(...)
Merges a protocol message into the current message.
MergeFromString(...)
Merges a serialized message into the current message.
ParseFromString(...)
Parses a serialized message into the current message.
SerializePartialToString(...)
Serializes the message to a string, even if it isn't initialized.
SerializeToString(...)
Serializes the message to a string, only for initialized messages.
SetInParent(...)
Sets the has bit of the given field in its parent message.
UnknownFields(...)
Parse unknown field set
WhichOneof(...)
Returns the name of the field set inside a oneof, or None if no field is set.
__deepcopy__(...)
Makes a deep copy of the class.
__eq__(self, value, /)
Return self==value.
__ge__(self, value, /)
Return self>=value.
__getattribute__(self, name, /)
Return getattr(self, name).
__gt__(self, value, /)
Return self>value.
__init__(self, /, *args, **kwargs)
Initialize self.  See help(type(self)) for accurate signature.
__le__(self, value, /)
Return self<=value.
__lt__(self, value, /)
Return self<value.
__ne__(self, value, /)
Return self!=value.
__repr__(self, /)
Return repr(self).
__str__(self, /)
Return str(self).
__unicode__(...)
Outputs a unicode representation of the message.

Class methods inherited from google.protobuf.pyext._message.CMessage:
FromString(...) from google.protobuf.pyext.cpp_message.GeneratedProtocolMessageType
Creates new method instance from given serialized data.
RegisterExtension(...) from google.protobuf.pyext.cpp_message.GeneratedProtocolMessageType
Registers an extension with the current message.

Static methods inherited from google.protobuf.pyext._message.CMessage:
__new__(*args, **kwargs) from google.protobuf.pyext._message.MessageMeta
Create and return a new object.  See help(type) for accurate signature.

Data descriptors inherited from google.protobuf.pyext._message.CMessage:
Extensions
Extension dict

Data and other attributes inherited from google.protobuf.pyext._message.CMessage:
__hash__ = None

Methods inherited from google.protobuf.message.Message:
__getstate__(self)
Support the pickle protocol.
__reduce__(self)
Helper for pickle.
__setstate__(self, state)
Support the pickle protocol.

 
Data
        API_KEY = ''
API_USERNAME = ''
DAILY_COLUMNS = ['symbol', 'date', 'close', 'open', 'high', 'low', 'volume']
DB_URL = 'https://api.moabdb.com/'
DESCRIPTOR = <google.protobuf.pyext._message.FileDescriptor object>
INTRA_COLUMNS = ['symbol', 'time', 'price', 'bid', 'ask', 'volume']
TREASURY_COLUMNS = ['date', 'Treasury_1m', 'Treasury_2m', 'Treasury_3m', 'Treasury_4m', 'Treasury_6m', 'Treasury_1y', 'Treasury_2y', 'Treasury_3y', 'Treasury_5y', 'Treasury_7y', 'Treasury_10y', 'Treasury_20y', 'Treasury_30y', 'Realrate_5y', 'Realrate_7y', 'Realrate_10y', 'Realrate_20y', 'Realrate_30y']