You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
469 B
22 lines
469 B
|
|
import dolphindb as ddb
|
|
from pprint import pprint
|
|
|
|
class DDBBase(object):
|
|
|
|
ddb_config = {
|
|
'host' : '192.168.1.7',
|
|
'username' : 'admin',
|
|
'password' : '123456',
|
|
}
|
|
|
|
|
|
def __init__(self, host=None, **kwargs):
|
|
if host is not None:
|
|
self.ddb_config['host'] = host
|
|
|
|
self.ddb_sess = ddb.session(self.ddb_config['host'], 8848)
|
|
self.ddb_sess.login(self.ddb_config['username'], self.ddb_config['password'])
|
|
|
|
|