This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#EC2インスタンス起動 | |
from cloud_lib.amazon_services import Ec2 | |
ec2_service = Ec2(aws_access_key_id, aws_secret_access_key, region_name) | |
ec2_service.start_instance('instance_id') | |
#BigQueryテーブル削除 | |
from cloud_lib.google_services import BigQuery | |
bq_service = BigQuery(project_id, client_id, client_secret, refresh_token) | |
bq_service.delete_table(data_set_id, table_id) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from zaifapi.impl import ZaifPublicApi, ZaifPrivateApi | |
#ビットコインと日本円の終値を取得 | |
zaif = ZaifPublicApi() | |
print(zaif.last_price('btc_jpy')) | |
#残高などのアカウント情報を取得 | |
zaif = ZaifTradeApi(key, secret) | |
print(zaif.get_info()) |