NAME

Finance::Alpaca::Struct::Configuration - A Single Account Configuration Object

SYNOPSIS

    use Finance::Alpaca;
    my $config = Finance::Alpaca->new( ... )->configuration;

DESCRIPTION

The account configuration API provides custom configurations about your trading account settings. These configurations control various allow you to modify settings to suit your trading needs.

For DTMC protection, see Day Trade Margin Call Protection

Properties

The following properties are contained in the object.

    say sprintf 'Can%s trade with this account', $config->suspend_trade ? 'not' : '';
dtbp_check - both, entry, or exit. Controls Day Trading Margin Call (DTMC) checks
trade_confirm_email - all or none. If none, emails for order fills are not sent
syspend_trade - If true, new orders are blocked
no_shorting - If true, account becomes long-only mode
fractional_trading - If true, account can trade fractions of shares
max_margin_multiplier - Leverage

LICENSE

Copyright (C) Sanko Robinson.

This library is free software; you can redistribute it and/or modify it under the terms found in the Artistic License 2. Other copyrights, terms, and conditions may apply to data transmitted through this module.

AUTHOR

Sanko Robinson <sanko@cpan.org>