<s> """<STR_LIT>""" <EOL> from datetime import datetime <EOL> import oandapy <EOL> OANDA_ACCESS_TOKEN = "<STR_LIT>" <EOL> OANDA_ACCOUNT_ID = <NUM_LIT> <EOL> def main ( ) : <EOL> print "<STR_LIT>" , datetime . now ( ) <EOL> oanda = oandapy . API ( environment = "<STR_LIT>" , <EOL> access_token = OANDA_ACCESS_TOKEN ) <EOL> response = oanda . get_prices ( instruments = "<STR_LIT>" ) <EOL> prices = response . get ( "<STR_LIT>" ) <EOL> buy_price = prices [ <NUM_LIT:0> ] . get ( "<STR_LIT>" ) <EOL> print "<STR_LIT>" , buy_price <EOL> trade_id = oanda . create_order ( OANDA_ACCOUNT_ID , instrument = "<STR_LIT>" , <EOL> units = <NUM_LIT:1000> , <EOL> side = '<STR_LIT>' , <EOL> type = '<STR_LIT>' ) <EOL> print "<STR_LIT>" , trade_id <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> main ( ) </s>
