SYMBOL INDEX (289 symbols across 49 files) FILE: docs/conf.py class ExecDirective (line 362) | class ExecDirective(Directive): method run (line 366) | def run(self): function setup (line 383) | def setup(app): FILE: docs/dirstruct.py function get_classes (line 12) | def get_classes(modName): FILE: jupyter/exampleauth/exampleauth.py function exampleAuth (line 4) | def exampleAuth(): FILE: oandapyV20/__init__.py class NullHandler (line 18) | class NullHandler(logging.Handler): method emit (line 19) | def emit(self, record): FILE: oandapyV20/contrib/factories/history.py function InstrumentsCandlesFactory (line 17) | def InstrumentsCandlesFactory(instrument, params=None): FILE: oandapyV20/contrib/generic.py function secs2time (line 6) | def secs2time(e): function granularity_to_time (line 19) | def granularity_to_time(s): FILE: oandapyV20/contrib/requests/baserequest.py class BaseRequest (line 10) | class BaseRequest(object): method __init__ (line 14) | def __init__(self): method __repr__ (line 17) | def __repr__(self): method data (line 21) | def data(self): method toJSON (line 38) | def toJSON(self): FILE: oandapyV20/contrib/requests/extensions.py class ClientExtensions (line 7) | class ClientExtensions(BaseRequest): method __init__ (line 10) | def __init__(self, FILE: oandapyV20/contrib/requests/limitorder.py class LimitOrderRequest (line 11) | class LimitOrderRequest(BaseRequest): method __init__ (line 18) | def __init__(self, method data (line 98) | def data(self): FILE: oandapyV20/contrib/requests/marketorder.py class MarketOrderRequest (line 11) | class MarketOrderRequest(BaseRequest): method __init__ (line 18) | def __init__(self, method data (line 143) | def data(self): FILE: oandapyV20/contrib/requests/mitorder.py class MITOrderRequest (line 11) | class MITOrderRequest(BaseRequest): method __init__ (line 18) | def __init__(self, method data (line 106) | def data(self): FILE: oandapyV20/contrib/requests/onfill.py class OnFill (line 11) | class OnFill(BaseRequest): method __init__ (line 15) | def __init__(self, class TakeProfitDetails (line 35) | class TakeProfitDetails(OnFill): method __init__ (line 48) | def __init__(self, class StopLossDetails (line 118) | class StopLossDetails(OnFill): method __init__ (line 131) | def __init__(self, class TrailingStopLossDetails (line 191) | class TrailingStopLossDetails(OnFill): method __init__ (line 204) | def __init__(self, FILE: oandapyV20/contrib/requests/positionclose.py class PositionCloseRequest (line 8) | class PositionCloseRequest(BaseRequest): method __init__ (line 15) | def __init__(self, FILE: oandapyV20/contrib/requests/stoplossorder.py class StopLossOrderRequest (line 8) | class StopLossOrderRequest(BaseRequest): method __init__ (line 15) | def __init__(self, method data (line 85) | def data(self): FILE: oandapyV20/contrib/requests/stoporder.py class StopOrderRequest (line 11) | class StopOrderRequest(BaseRequest): method __init__ (line 18) | def __init__(self, method data (line 103) | def data(self): FILE: oandapyV20/contrib/requests/takeprofitorder.py class TakeProfitOrderRequest (line 8) | class TakeProfitOrderRequest(BaseRequest): method __init__ (line 15) | def __init__(self, method data (line 84) | def data(self): FILE: oandapyV20/contrib/requests/tradeclose.py class TradeCloseRequest (line 7) | class TradeCloseRequest(BaseRequest): method __init__ (line 14) | def __init__(self, units="ALL"): FILE: oandapyV20/contrib/requests/trailingstoplossorder.py class TrailingStopLossOrderRequest (line 8) | class TrailingStopLossOrderRequest(BaseRequest): method __init__ (line 16) | def __init__(self, method data (line 86) | def data(self): FILE: oandapyV20/definitions/__init__.py function make_definition_classes (line 40) | def make_definition_classes(mod): FILE: oandapyV20/endpoints/accounts.py class Accounts (line 9) | class Accounts(APIRequest): method __init__ (line 17) | def __init__(self, accountID=None): class AccountList (line 33) | class AccountList(Accounts): method __init__ (line 37) | def __init__(self): class AccountDetails (line 56) | class AccountDetails(Accounts): method __init__ (line 65) | def __init__(self, accountID): class AccountSummary (line 90) | class AccountSummary(Accounts): method __init__ (line 94) | def __init__(self, accountID): class AccountInstruments (line 119) | class AccountInstruments(Accounts): method __init__ (line 129) | def __init__(self, accountID, params=None): class AccountConfiguration (line 164) | class AccountConfiguration(Accounts): method __init__ (line 170) | def __init__(self, accountID, data): class AccountChanges (line 203) | class AccountChanges(Accounts): method __init__ (line 211) | def __init__(self, accountID, params=None): FILE: oandapyV20/endpoints/apirequest.py class APIRequest (line 7) | class APIRequest(object): method __init__ (line 11) | def __init__(self, endpoint, method="GET", expected_status=200): method expected_status (line 30) | def expected_status(self): method status_code (line 34) | def status_code(self): method status_code (line 38) | def status_code(self, value): method response (line 44) | def response(self): method response (line 49) | def response(self, value): method __str__ (line 53) | def __str__(self): FILE: oandapyV20/endpoints/decorators.py function dyndoc_insert (line 5) | def dyndoc_insert(src): function endpoint (line 57) | def endpoint(url, method="GET", expected_status=200): function abstractclass (line 72) | def abstractclass(cls): class extendargs (line 109) | class extendargs(object): method __init__ (line 115) | def __init__(self, *loa): method __call__ (line 118) | def __call__(self, cls): FILE: oandapyV20/endpoints/forexlabs.py class ForexLabs (line 8) | class ForexLabs(APIRequest): method __init__ (line 16) | def __init__(self): class Calendar (line 24) | class Calendar(ForexLabs): method __init__ (line 31) | def __init__(self, params): class HistoricalPositionRatios (line 59) | class HistoricalPositionRatios(ForexLabs): method __init__ (line 66) | def __init__(self, params): class Spreads (line 94) | class Spreads(ForexLabs): method __init__ (line 101) | def __init__(self, params): class CommitmentsOfTraders (line 129) | class CommitmentsOfTraders(ForexLabs): method __init__ (line 136) | def __init__(self, params): class OrderbookData (line 164) | class OrderbookData(ForexLabs): method __init__ (line 171) | def __init__(self, params): class Autochartist (line 199) | class Autochartist(ForexLabs): method __init__ (line 206) | def __init__(self, params=None): FILE: oandapyV20/endpoints/instruments.py class Instruments (line 9) | class Instruments(APIRequest): method __init__ (line 17) | def __init__(self, instrument): class InstrumentsCandles (line 32) | class InstrumentsCandles(Instruments): method __init__ (line 36) | def __init__(self, instrument, params=None): class InstrumentsOrderBook (line 76) | class InstrumentsOrderBook(Instruments): method __init__ (line 80) | def __init__(self, instrument, params=None): class InstrumentsPositionBook (line 120) | class InstrumentsPositionBook(Instruments): method __init__ (line 124) | def __init__(self, instrument, params=None): FILE: oandapyV20/endpoints/orders.py class Orders (line 9) | class Orders(APIRequest): method __init__ (line 18) | def __init__(self, accountID, orderID=None): class OrderCreate (line 35) | class OrderCreate(Orders): method __init__ (line 41) | def __init__(self, accountID, data): class OrderList (line 74) | class OrderList(Orders): method __init__ (line 78) | def __init__(self, accountID, params=None): class OrdersPending (line 111) | class OrdersPending(Orders): method __init__ (line 115) | def __init__(self, accountID): class OrderDetails (line 143) | class OrderDetails(Orders): method __init__ (line 147) | def __init__(self, accountID, orderID): class OrderReplace (line 175) | class OrderReplace(Orders): method __init__ (line 185) | def __init__(self, accountID, orderID, data): class OrderCancel (line 222) | class OrderCancel(Orders): method __init__ (line 226) | def __init__(self, accountID, orderID): class OrderClientExtensions (line 257) | class OrderClientExtensions(Orders): method __init__ (line 268) | def __init__(self, accountID, orderID, data): FILE: oandapyV20/endpoints/positions.py class Positions (line 8) | class Positions(APIRequest): method __init__ (line 16) | def __init__(self, accountID, instrument=None): class PositionList (line 35) | class PositionList(Positions): method __init__ (line 43) | def __init__(self, accountID): class OpenPositions (line 69) | class OpenPositions(Positions): method __init__ (line 77) | def __init__(self, accountID): class PositionDetails (line 103) | class PositionDetails(Positions): method __init__ (line 111) | def __init__(self, accountID, instrument): class PositionClose (line 141) | class PositionClose(Positions): method __init__ (line 147) | def __init__(self, accountID, instrument, data): FILE: oandapyV20/endpoints/pricing.py class Pricing (line 11) | class Pricing(APIRequest): method __init__ (line 18) | def __init__(self, accountID): class PricingInfo (line 32) | class PricingInfo(Pricing): method __init__ (line 40) | def __init__(self, accountID, params=None): class PricingStream (line 76) | class PricingStream(Pricing): method __init__ (line 86) | def __init__(self, accountID, params=None): method terminate (line 122) | def terminate(self, message=""): FILE: oandapyV20/endpoints/trades.py class Trades (line 9) | class Trades(APIRequest): method __init__ (line 17) | def __init__(self, accountID, tradeID=None): class TradesList (line 34) | class TradesList(Trades): method __init__ (line 38) | def __init__(self, accountID, params=None): class OpenTrades (line 73) | class OpenTrades(Trades): method __init__ (line 77) | def __init__(self, accountID): class TradeDetails (line 103) | class TradeDetails(Trades): method __init__ (line 107) | def __init__(self, accountID, tradeID): class TradeClose (line 136) | class TradeClose(Trades): method __init__ (line 145) | def __init__(self, accountID, tradeID, data=None): class TradeClientExtensions (line 184) | class TradeClientExtensions(Trades): method __init__ (line 194) | def __init__(self, accountID, tradeID, data=None): class TradeCRCDO (line 237) | class TradeCRCDO(Trades): method __init__ (line 243) | def __init__(self, accountID, tradeID, data): FILE: oandapyV20/endpoints/transactions.py class Transactions (line 11) | class Transactions(APIRequest): method __init__ (line 19) | def __init__(self, accountID, transactionID=None): class TransactionList (line 38) | class TransactionList(Transactions): method __init__ (line 46) | def __init__(self, accountID, params=None): class TransactionDetails (line 79) | class TransactionDetails(Transactions): method __init__ (line 83) | def __init__(self, accountID, transactionID): class TransactionIDRange (line 111) | class TransactionIDRange(Transactions): method __init__ (line 118) | def __init__(self, accountID, params=None): class TransactionsSinceID (line 153) | class TransactionsSinceID(Transactions): method __init__ (line 161) | def __init__(self, accountID, params=None): class TransactionsStream (line 196) | class TransactionsStream(Transactions): method __init__ (line 206) | def __init__(self, accountID, params=None): method terminate (line 243) | def terminate(self, message=""): FILE: oandapyV20/exceptions.py class StreamTerminated (line 4) | class StreamTerminated(Exception): class V20Error (line 8) | class V20Error(Exception): method __init__ (line 15) | def __init__(self, code, msg): FILE: oandapyV20/oandapyV20.py class API (line 29) | class API(object): method __init__ (line 170) | def __init__(self, access_token, environment="practice", method __enter__ (line 232) | def __enter__(self): method __exit__ (line 235) | def __exit__(self, exc_type, exc_val, exc_tb): method close (line 238) | def close(self): method request_params (line 246) | def request_params(self): method __request (line 250) | def __request(self, method, url, request_args, headers=None, stream=Fa... method __stream_request (line 278) | def __stream_request(self, method, url, request_args, headers=None): method request (line 294) | def request(self, endpoint): FILE: oandapyV20/types/types.py class OAType (line 11) | class OAType(object): method value (line 15) | def value(self): class AccountID (line 20) | class AccountID(OAType): method __init__ (line 38) | def __init__(self, accountID): class OrderID (line 48) | class OrderID(OAType): method __init__ (line 66) | def __init__(self, orderID): class DateTime (line 72) | class DateTime(OAType): method __init__ (line 102) | def __init__(self, dateTime): class TradeID (line 148) | class TradeID(OAType): method __init__ (line 166) | def __init__(self, tradeID): class AccountUnits (line 172) | class AccountUnits(OAType): method __init__ (line 175) | def __init__(self, units): class PriceValue (line 179) | class PriceValue(OAType): method __init__ (line 182) | def __init__(self, priceValue): class Units (line 186) | class Units(OAType): method __init__ (line 189) | def __init__(self, units): class ClientID (line 206) | class ClientID(OAType): method __init__ (line 209) | def __init__(self, clientID): class ClientTag (line 217) | class ClientTag(OAType): method __init__ (line 220) | def __init__(self, clientTag): class ClientComment (line 228) | class ClientComment(OAType): method __init__ (line 231) | def __init__(self, clientComment): class OrderIdentifier (line 239) | class OrderIdentifier(OAType): method __init__ (line 242) | def __init__(self, orderID, clientID): class OrderSpecifier (line 249) | class OrderSpecifier(OAType): method __init__ (line 252) | def __init__(self, specifier): FILE: setup.py function get_version (line 8) | def get_version(package): function read_all (line 16) | def read_all(f): FILE: tests/test_accounts.py class TestAccounts (line 27) | class TestAccounts(unittest.TestCase): method setUp (line 30) | def setUp(self): method test__account_list (line 54) | def test__account_list(self, mock_req): method test__account_details (line 66) | def test__account_details(self, mock_req): method test__get_account_summary (line 82) | def test__get_account_summary(self, accID, status_code, method test__account_instruments (line 113) | def test__account_instruments(self, mock_req): method test__account_configuration (line 125) | def test__account_configuration(self, mock_req): method test__account_changes (line 137) | def test__account_changes(self, mock_get): FILE: tests/test_contrib_factories.py class TestContribFactories (line 14) | class TestContribFactories(unittest.TestCase): method test__candlehistory (line 80) | def test__candlehistory(self, factory, instrument, inpar, refpar, FILE: tests/test_contrib_generic.py class TestContribGeneric (line 13) | class TestContribGeneric(unittest.TestCase): method test__secs2time (line 16) | def test__secs2time(self): method test__granularity_to_time (line 33) | def test__granularity_to_time(self, meth, granularity, refval, exc=None): FILE: tests/test_contrib_orders.py class TestContribRequests (line 15) | class TestContribRequests(unittest.TestCase): method test__orders (line 232) | def test__orders(self, cls, inpar, refpar, exc=None): method test__anonymous_body (line 379) | def test__anonymous_body(self, cls, inpar, refpar, exc=None): FILE: tests/test_decorators.py class TestDecorators (line 7) | class TestDecorators(unittest.TestCase): method test__extendargs (line 10) | def test__extendargs(self): method test__abstractclass (line 25) | def test__abstractclass(self): FILE: tests/test_definitions.py class TestDefinitions (line 7) | class TestDefinitions(unittest.TestCase): method test__order_definitions (line 10) | def test__order_definitions(self): method test__order_definitions_dictproperty (line 16) | def test__order_definitions_dictproperty(self): FILE: tests/test_forexlabs.py class TestForexLabs (line 20) | class TestForexLabs(unittest.TestCase): method setUp (line 23) | def setUp(self): method test__calendar (line 47) | def test__calendar(self, mock_get): method test__histposratios (line 59) | def test__histposratios(self, mock_get): method test__spreads (line 71) | def test__spreads(self, mock_get): method test__commoftrad (line 83) | def test__commoftrad(self, mock_get): method test__orderbookdata (line 95) | def test__orderbookdata(self, mock_get): method test__autochartist (line 107) | def test__autochartist(self, mock_get): FILE: tests/test_instruments.py class TestInstruments (line 20) | class TestInstruments(unittest.TestCase): method setUp (line 23) | def setUp(self): method test__instruments_candles (line 47) | def test__instruments_candles(self, mock_get): method test__instruments_orderbook (line 61) | def test__instruments_orderbook(self, mock_get): method test__instruments_positionbook (line 75) | def test__instruments_positionbook(self, mock_get): FILE: tests/test_oandapyv20.py class TestOandapyV20 (line 13) | class TestOandapyV20(unittest.TestCase): method setUp (line 16) | def setUp(self): method test__oandapyv20_environment (line 38) | def test__oandapyv20_environment(self): method test__requests_params (line 47) | def test__requests_params(self): method test__requests_exception (line 56) | def test__requests_exception(self): FILE: tests/test_orders.py class TestOrders (line 20) | class TestOrders(unittest.TestCase): method setUp (line 23) | def setUp(self): method test__orders_base_exception (line 46) | def test__orders_base_exception(self): method test__order_create (line 57) | def test__order_create(self, mock_post): method test__order_clientextensions (line 70) | def test__order_clientextensions(self, mock_put): method test__orders_pending (line 83) | def test__orders_pending(self, mock_get): method test__orders_list (line 96) | def test__orders_list(self, mock_get): method test__order_details (line 111) | def test__order_details(self, mock_get): method test__order_cancel (line 126) | def test__order_cancel(self, mock_get): method test__order_replace (line 142) | def test__order_replace(self, mock_put): method test__order_replace_wrong_status_exception (line 165) | def test__order_replace_wrong_status_exception(self, mock_get): FILE: tests/test_positions.py class TestPositions (line 20) | class TestPositions(unittest.TestCase): method setUp (line 23) | def setUp(self): method test__positions_list (line 46) | def test__positions_list(self, mock_get): method test__openpositions_list (line 58) | def test__openpositions_list(self, mock_get): method test__positiondetails (line 70) | def test__positiondetails(self, mock_get): method test__positionclose (line 82) | def test__positionclose(self, mock_put): FILE: tests/test_pricing.py class TestPricing (line 21) | class TestPricing(unittest.TestCase): method setUp (line 24) | def setUp(self): method test__pricing (line 47) | def test__pricing(self, mock_get): method test__pricing_stream (line 61) | def test__pricing_stream(self, mock_get): method test__pricing_stream_termination_1 (line 84) | def test__pricing_stream_termination_1(self): FILE: tests/test_trades.py class TestTrades (line 20) | class TestTrades(unittest.TestCase): method setUp (line 23) | def setUp(self): method test__trades_list (line 45) | def test__trades_list(self, mock_get): method test__open_trades (line 57) | def test__open_trades(self, mock_get): method test__trade_details (line 69) | def test__trade_details(self, mock_get): method test__trade_close (line 81) | def test__trade_close(self, mock_put): method test__trade_cltext (line 93) | def test__trade_cltext(self, mock_put): method test__trade_crcdo (line 105) | def test__trade_crcdo(self, mock_put): method test__trades_list_byids (line 117) | def test__trades_list_byids(self, mock_get): FILE: tests/test_transactions.py class TestTransactions (line 21) | class TestTransactions(unittest.TestCase): method setUp (line 24) | def setUp(self): method test__transactions (line 48) | def test__transactions(self, mock_get): method test__transactions_details (line 60) | def test__transactions_details(self, mock_get): method test__transactions_idrange (line 73) | def test__transactions_idrange(self, mock_get): method test__transactions_sinceid (line 85) | def test__transactions_sinceid(self, mock_get): method test__transaction_stream (line 97) | def test__transaction_stream(self, mock_get): method test__transaction_stream_termination_1 (line 122) | def test__transaction_stream_termination_1(self): FILE: tests/test_types.py class TestTypes (line 16) | class TestTypes(unittest.TestCase): method test__types (line 228) | def test__types(self, cls, inpar, reference, exc=None): FILE: tests/unittestsetup.py function fetchTestData (line 13) | def fetchTestData(responses, k): class TestData (line 28) | class TestData(object): method __init__ (line 30) | def __init__(self, responses, tid): method resp (line 34) | def resp(self): method body (line 38) | def body(self): method params (line 42) | def params(self): function auth (line 46) | def auth():